This PR fixes a regression that causes a // in search index JSON URLs in production.
Changes / fixes
Fixes page language lookup
On Brave browser, the lang attribute on the HTML element somehow defaults to en, ignoring the value set here. This quirk, results in the wrong search index URL in non-english pages. Setting the language via a data attribute avoids this issue.
Change how search JSON URL is constructed
Fixes forEach loop
Screenshots (if applicable)
(prefer animated gif)
Checklist
Ensure you have checked off the following before submitting your PR.
This PR fixes a regression that causes a
//
in search index JSON URLs in production.Changes / fixes
lang
attribute on the HTML element somehow defaults toen
, ignoring the value set here. This quirk, results in the wrong search index URL in non-english pages. Setting the language via a data attribute avoids this issue.Screenshots (if applicable)
(prefer animated gif)
Checklist
Ensure you have checked off the following before submitting your PR.