Fix paths on search results
What does this MR do and why?
Makes a few fixes for search result links:
- Use a relative URL rather than an absolute URL
- This should allow links to resolve on subdirectory-style instances. We can do this in our JS code by using
docsBaseURL()
rather than ever linking to something with a leading/
.
- This should allow links to resolve on subdirectory-style instances. We can do this in our JS code by using
- Adds a
_redirects
file to try rewriting Nanoc-style URLs to Hugo URLs (#88 (closed)). If these redirects work, result links should actually resolve (after a redirect) on the Hugo site🤞
How to set up and validate locally
Can't really test this locally (especially the redirects).
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.