Skip to content

Comment on Angular JS Gotcha: HTML5 Mode Routingparent

Comments

And here...

The reason why refreshing your browser breaks HTML5 mode is that all the routes in your AngularJS application are not real. Release[Board] doesn't have a /releases page. AngularJS is using some clever JavaScript to make it seem like a /releases page exists. When the user hits refresh, the browser tries to load a real /releases page, which is non existent. I find this a completely unacceptable user experience.

...isn't this a case of "Duh. What did you expect to happen?"

Yep. and the simple solution is a server-side wildcard route.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.