query parameters on initial URL

19 views
Skip to first unread message

Mark Volkmann

unread,
Dec 14, 2015, 3:39:22 PM12/14/15
to ang...@googlegroups.com
I'm using ui-router. I can specify in a route that the URL can contain certain query parameters and I can retrieve those using $stateParam when I go that route. However, this only works when I am already in the app. If I open a new browser tab and attempt to go directly to that state, including query parameters in the URL, they get stripped off.

Is there a way to capture the query parameters in the initial URL of an Angular app?

--
R. Mark Volkmann
Object Computing, Inc.

Sander Elias

unread,
Dec 15, 2015, 2:02:17 AM12/15/15
to AngularJS
Hi Mark,

Are you sure it's the angular side that strips off the parameters? It sounds like an configuration issue with your server. This is something that can happen even without HTML5 mode turned on

Regards
Sander
Reply all
Reply to author
Forward
0 new messages