slovnicki / beamer

A routing package built on top of Router and Navigator's pages API, supporting arbitrary nested navigation, guards and more.
MIT License
591 stars 129 forks source link

when i use Beamer.setPathUrlStrategy(), the url navigation is not working #587

Open hashimchargemod opened 1 year ago

hashimchargemod commented 1 year ago

I've added Beamer.setPathUrlStrategy(); in main before runApp and the url navigation is not working, when i type mydomain.com/store then i get a 404 not found. but when i remove Beamer.setPathUrlStrategy(); from main, then the url navigation is working

version = beamer: ^1.5.3

To reproduce the issue, you can add Beamer.setPathUrlStrategy() in the main file.

Beamer.setPathUrlStrategy() is using to remove the # from the url in the web

appbieger commented 1 year ago

I run into the same problem with Beamer: 1.5.2. My app works fine without Beamer.setPathUrlStrategy(), for example with http://localhost:52793/#/screenshot/2 . As soon as I use Beamer.setPathUrlStrategy(), my app works fine when navigating via the app, but as soon as I insert the current URL like http://localhost:52793/screenshot/2, my app is pushed back to http://localhost:52793/. Does anyone have an idea or a fix?

Regards, Stephan

hashimchargemod commented 1 year ago

I run into the same problem with Beamer: 1.5.2. My app works fine without Beamer.setPathUrlStrategy(), for example with http://localhost:52793/#/screenshot/2 . As soon as I use Beamer.setPathUrlStrategy(), my app works fine when navigating via the app, but as soon as I insert the current URL like http://localhost:52793/screenshot/2, my app is pushed back to http://localhost:52793/. Does anyone have an idea or a fix?

Regards, Stephan

Have you found any solutions?

appbieger commented 1 year ago

unfortunatly not

TheMaverickProgrammer commented 8 months ago

It seems we're having the same problem.