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.
New unstable 1.1.5 broke $location URL parsing #2860
Closed
Description
Since 1.1.5, the $location
provider now appends a hash-part to the URL, which it shouldn't!
Using plunkr for the test-case was problematic because of window.location. So, here is a minimal test-case as code that demonstrates the issue. Simply create an html-file with this code. Notice the URL change at the end after opening the page!
EDIT as @jssebastian clarified below: Visiting page.html
, with no use of angular routing but only depending on $location, causes an unwanted redirection to page.html#/page.html
Test-case:
<html ng-app>
<body class="item-content" ng-controller="MyController">
</body>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<script type="text/javascript">
function MyController($scope, $location) {};
</script>
</html>
Metadata
Metadata
Assignees
Labels
No labels