Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ie8 fix for html5mode route
  • Loading branch information
Roman Makudera committed Mar 25, 2014
commit 00c4254f20649e15f96274c07b48786671d2b10c
3 changes: 3 additions & 0 deletions src/ng/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ function LocationHashbangUrl(appBase, hashPrefix) {
* @private
*/
this.$$parse = function(url) {
if (!url) {
url = appBase;
}
var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url);
var withoutHashUrl = withoutBaseUrl.charAt(0) == '#'
? beginsWith(hashPrefix, withoutBaseUrl)
Expand Down