Issue with PathLocationStrategy and Bookmarks or refreshes

586 views
Skip to first unread message

Manfred Steyer

unread,
Dec 29, 2015, 6:24:31 PM12/29/15
to AngularJS
Hi,

I'm using PathLocationStrategy. While the back-button and forward-button work quite well, it is not possible to use the routes within bookmarks or to refresh a page.

Let's say this is the current url:

   http://localhost:8080/voucher

Let's assume that /voucher is the route-url and http://localhost:8080 is the Url of the SPA. When I hit refresh or load this page with a bookmark, the browser tries to fetch the whole url
(http://localhost:8080/voucher) from the server. As this url does not exist on the server side this fails.

How to deal with this issue?

Wishes,
Manfred

Günter Zöchbauer

unread,
Dec 30, 2015, 6:30:39 AM12/30/15
to AngularJS

Günter Zöchbauer

unread,
Dec 30, 2015, 6:32:24 AM12/30/15
to AngularJS

Manfred Steyer

unread,
Dec 30, 2015, 9:07:49 PM12/30/15
to AngularJS
Great, it works now. Thx, Günter.
Reply all
Reply to author
Forward
0 new messages