Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

IE8 in html5Mode reload the page to add hash and server loose GET parameters and path  #6195

@nolazybits

Description

@nolazybits

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:

$req=$_SERVER['REQUEST_URI'];
if(strpos($req, '/items/') === 0){
    include __DIR__.'/../views/items/index.php';
} else{
    include __DIR__.'/../views/login/index.php';
}

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:

  • enter url = /items/23
  • server returns page items/index.php
  • Algularjs changes url to /#!/items/23
  • Server cannot read data after hash symbol, and think that url is / so it returns page login/index.php

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions