docute icon indicating copy to clipboard operation
docute copied to clipboard

Why does mode: history not working (github pages)?

Open oren opened this issue 6 years ago • 2 comments

Here is my test website - http://oren.github.io/new/

clicking on a url from the sidebar, for example - http://oren.github.io/new/ai.md, causing 404 on the 'fetch' of ai.md and the page is not showing.

That's the code: https://github.com/oren/oren.github.io/blob/fca5c6fb69c19c3602363bd0acaaca65b51d70cd/new/index.html

oren avatar Apr 04 '19 02:04 oren

Yes GitHub Pages doesn't support this.

egoist avatar Jun 08 '19 08:06 egoist

For GitHub Pages, it will work if you can rename index.html to 404.html, however the response status code will be 404 😅

It's recommended to use Netlify, ZEIT now or Render.com instead if you want to use history mode

egoist avatar Jun 08 '19 11:06 egoist