django-reactjs-boilerplate icon indicating copy to clipboard operation
django-reactjs-boilerplate copied to clipboard

Problem with browserHistory

Open sidneysm opened this issue 9 years ago • 3 comments

I had a problem whem I put directly 'localhost:8000/login' on my browser, the app make a request to server and server responses 'Pages not foud'. Only works when I click in the navbar link.

Someone else?

sidneysm avatar Sep 26 '16 13:09 sidneysm

Could it be that you need to enter the URL localhost:8000/login/ (note the trailing slash)?

mbrochh avatar Oct 03 '16 03:10 mbrochh

I resolve that by using a url r'*' to accept all requenta and rendering my app page.

Bug now I Am having problema when I use F5 on my browser or use the urls directly in the browser.

For exemple, if I stay in localhost:8000/home, press f5 and click home again my urls transform in localhost:8000/home/home, if I click in about transform in localhost:8000/home/about.

I really puser about this, thinking in use hasHistory instead 😔

sidneysm avatar Oct 03 '16 18:10 sidneysm

Thanks for your attention

sidneysm avatar Oct 03 '16 18:10 sidneysm