hydecorp / hydejack

A boutique Jekyll theme for hackers, nerds, and academics
https://hydejack.com
Other
1.42k stars 804 forks source link

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

Open doubleplusc opened 1 year ago

doubleplusc commented 1 year ago

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