-
Notifications
You must be signed in to change notification settings - Fork 27.6k
IE8 in html5Mode reload the page to add hash and server loose GET parameters and path #6195
Comments
I've come with a workaround (for the IE8 workaround), by adding cookies before reloading the page if in IE8.
I will push the change on my fork. |
Pull request created here |
@zeflasher thanks for the PR but as I commented there this change is not desirable because it's not aligned with the responsibilities of $location service. I think that you should show the login screen based on the login credentials and not the url entered. So if a request comes in, check if the user is authenticated and authorized to access given resource/page and if everything is ok proceed. Otherwise redirect the request to the login page or 403 page. This is a common practice and people often deal with this using serverside request filters or interceptors. |
Hello Igor, This as nothing to do with the process (btw we are doing exactly this, each app check credential and if not logged in redirect to the login screen with token attached). The problem is that parameters sent to the application are getting lost because of the refresh done by the IE8 html5mode workaround. Please See pull request for more details. The workaround remove normal functionality. We should at least give the developer a way around it (again please see the comment on the linked pull request) Cheers, |
Kind of checking in - zeflasher, did you ever get a solution to this problem? Running into the same issue here. |
So the problem has been described really well on stackoverflow by another user
http://stackoverflow.com/questions/20884640/angularjs-and-php-routing-in-ie9-doesnt-work/21667795#21667795
Copy pasting it here.
I have an application with routing on php. Here is the simple example:
on each page (items and login) angularjs routing is used. And all works perfectly except IE9 and below. After page load, angular updates url and reloads the page for routing with hash navigation. And I get the following problem in IE:
I have a similar problem where my php page does some redirection (well, includes) depending on $_GET variables or path. One of the redirection (include) is the angularjs app itself.
The text was updated successfully, but these errors were encountered: