Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v9.1.6: Search result area outside heading link does not use baseUrl #328

Open
doubleplusc opened this issue Aug 8, 2023 · 0 comments
Open

Comments

@doubleplusc
Copy link

I encountered an issue when using the search feature on Hydejack hosted in a subdirectory. The link uses relativeUrl but the rest of the clickable area does not. This leads to 404s when clicking on the empty areas because baseUrl is not added.

I fixed it by using relativeUrl on item.url on lines 104 and 106 of search.js.

For people digging through the minified version search-hydejack-9.1.6.js, this corresponds to changing e.url to y(e.url) on column 1907 (before return Object(u.f)) and 2577 (inside t.call(i,).

Would appreciate if you're able to release an updated version because I don't know how to use the source code.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant