Use docsearch on Github Pages, necessitating that base be set to the repository name '/RepoName/'.
Perform a search. Observe that the API results from algolia correctly contain the full URL of the page. https://OrgName.github.io/RepoName/path/to/page.html.
Hover over a search result. Observe that the URL shown in the bottom left corner of the browser is https://OrgName.github.io/path/to/result.html. The path segment representing the base URL (the repo name) has been stripped out.
While this does not break normal left clicks on the link because those are handled with vue-router which does need the truncated URL, this does break all right-click operations (open in new tab, open in new window), and breaks middle-click to open in a new tab.
As I don't have a crawler configured with /base/, I didn't check if the fix is actually valid in practice. It would be helpful if you can help to confirm the fix @ascott18
Description
base
be set to the repository name'/RepoName/'
.https://OrgName.github.io/RepoName/path/to/page.html
.https://OrgName.github.io/path/to/result.html
. The path segment representing the base URL (the repo name) has been stripped out.While this does not break normal left clicks on the link because those are handled with vue-router which does need the truncated URL, this does break all right-click operations (open in new tab, open in new window), and breaks middle-click to open in a new tab.
Reproduction
https://intellitect.github.io/Coalesce
Used Package Manager
npm
System Info
Note: I can't upgrade past beta.43 due to https://github.com/vuepress/vuepress-next/issues/653#issuecomment-1152729495. However, the code that handles this bug is still the same.