-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Nested routes are not working when URL is refreshed #65
Comments
try this
|
Sorry, It is not working. If I navigate using I am able to reach /auth/atkn however when I refresh my browser it is showing blank screen. |
Can you give the url to your repo. |
@CreativeManix Get latest and try again. I added a leading slash in index.html for bundle.js. I believe this will fix your issue. |
@CreativeManix - Is this issue resolved when you get latest? |
Closing since this should have been fixed with a recent commit. |
This happens in the latest version as of 6/30/2016 (4.0.0), and is undesirable... any suggestions? The pull request above references a file that is no longer in the repo. STR:
|
Great catch @jforaker. Bummer. This is my miss. The new structure for generating index.html via html-webpack-plugin caused this. I'm looking into a fix, but in the meantime, 4.0.0 will continue to work. I haven't cut a release in awhile so it's quite a few commits behind master. |
Fix nested route refresh in dev mode, closes #65
@CreativeManix I want to follow up on @coryhouse's answer on the leading slash solution. In order to fix the issue by adding a leading slash to
const config = {
entry: './src/app/index.tsx',
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/', // 👈 added this property
},
// other configs When |
I have above configuration, when I navigate to /auth/login it works. however when I refresh the page, history fallback lib is not rendering the component instead it shows blank screen!
Should I do anything specifically?
The text was updated successfully, but these errors were encountered: