html5Mode appbase regression in 1.1.5 · Issue #2799 · angular/angular.js (original) (raw)

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.

@clkao

Description

@clkao

I noticed that 58ef323 introduced html5Mode behaviour changes for determining appbase.

With html5Mode, given an app http://foo/, and a deep link url http://foo/bar/baz that can be reached with ng-href or something within the application, the appbase is /. However if the user goes to http://foo/bar/baz directly, the appbase becomes http://foo/bar, leaving the path to be /baz, and this breaks url router or ui-router.