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.

New unstable 1.1.5 broke $location URL parsing #2860

Closed
@martinstein

Description

@martinstein

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

No one assigned

    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