Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering 'index.html' file for routes #22

Closed
lewisdonovan opened this issue Oct 30, 2017 · 7 comments
Closed

Rendering 'index.html' file for routes #22

lewisdonovan opened this issue Oct 30, 2017 · 7 comments

Comments

@lewisdonovan
Copy link

I've noticed the static files for my routes are /ROUTE.html as opposed to /ROUTE/index.html. Is there any way I can change this?

@stereobooster
Copy link
Owner

use /ROUTE/

@lewisdonovan
Copy link
Author

Thanks for the quick response. Would I add this to the <Link> elements? So like <Link to={/ROUTE/} ... />? Also, would this work with sub-routes, eg: <Link to={/ROUTE/SUBROUTE/} ... />? Cheers.

@stereobooster
Copy link
Owner

anything that ends with / will produce /index.html

@lewisdonovan
Copy link
Author

Excellent, thank you.

@stereobooster
Copy link
Owner

I will leave this open, because I suppose this will be asked a lot. Options to solve:

  1. mention this is in FAQ
  2. always generate /index.html

@stereobooster stereobooster reopened this Oct 30, 2017
@lewisdonovan
Copy link
Author

Yeah, good call. I think adding that in the Readme.md would save time for both you and users ;)

@stereobooster
Copy link
Owner

I created another ticket for this

erulabs pushed a commit to erulabs/react-snap that referenced this issue Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants