Describe the bug
When on a page and you'd like to edit directly, the "Edit this page" button redirects to github but with a 404.
This only happens when I try to deploy locally, not using the pre-built version.
Expected behavior
It should redirect to the correct git page and allow editing
Steps to reproduce
Go to http://localhost:3000/search-your-data.html
Redirect points to
https://github.com/elastic/unavailable/edit/elasticsearch.md/docs/search-your-data.md
Edit this page
However in the https://bookish-dollop-9p66716.pages.github.io/search-your-data.html
The redirect points to Edit this page
Tooling