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

Description
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.