stereobooster/react-snap

Home page always being returned

bruno-silva5 opened this issue · 8 comments

Bug Report

Current Behavior
I simply created a create-react-app (using React17) and installed react-snap and react-router-dom. Then I created some simple routes and pages (About, Contact, Home).

After properly configuring the react-snap. I created the static HTML files. But when I access the website with javascript disable, always the Home page is being returned.

For example. If I go to '/about', with Javascript disabled. The HTML of the main page is being returned, even though there is a HTML for the '/about' page.

Reproducible demo
Link to GitHub repository or codesandbox with a demo of the bug behavior.

Expected behavior/code
Expected to return the static HTML for the corresponding route

Additional context/Screenshots
image

I'm experiencing this exact same behavior. Have you found a fix for it?

@andrewtpoe Unfortunately not yet. Some months ago was working fine. I ask myself what could caused this problem.

I got the same issue using serve as the http server. But everything is ok with http-server (I mean using http-server instead of serve)

Hi. Does anybody have some updates?

Having same issue

Indeed HTTP-server over npm serve package helps to fix this issue

Same problem for me.