Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(urlUtils): urlUtils doesn't return right path for file:// on win #4928

Closed
wants to merge 1 commit into from

Conversation

jeffbcross
Copy link
Contributor

Chrome and other browsers on Windows often
append the drive name to the pathname,
as described in #4680. This would cause
the location service to browse to odd
URLs, such as /C:/myfile.html,
when opening apps using file://.

(I've verified CLA for primary committer of this PR)

Fixes #4680

Chrome and other browsers on Windows often
append the drive name to the pathname,
as described in angular#4680. This would cause
the location service to browse to odd
URLs, such as /C:/myfile.html,
when opening apps using file://.

Fixes  angular#4680
@ghost ghost assigned tbosch Nov 12, 2013
@jeffbcross jeffbcross mentioned this pull request Nov 12, 2013
@jeffbcross
Copy link
Contributor Author

Merged: a0932ae

@jeffbcross jeffbcross closed this Nov 13, 2013
jeffbcross added a commit to jeffbcross/angular.js that referenced this pull request Nov 27, 2013
The urlResolve method was fixed to automatically remove the
volume label from path names to fix issues with the file
protocol on windows where $location.path() was returning
paths where the first segment would be the volume name,
such as "/C:/mypath". See angular#4942 and angular#4928

However, the solution was specific to the $location non-
HTML5 mode, and was implemented at a lower level of
abstraction than it should have been. This refactor moves
the fix to inside of the LocationHashBangUrl $$parse method.

Closes angular#5041
jeffbcross added a commit that referenced this pull request Nov 27, 2013
The urlResolve method was fixed to automatically remove the
volume label from path names to fix issues with the file
protocol on windows where $location.path() was returning
paths where the first segment would be the volume name,
such as "/C:/mypath". See #4942 and #4928

However, the solution was specific to the $location non-
HTML5 mode, and was implemented at a lower level of
abstraction than it should have been. This refactor moves
the fix to inside of the LocationHashBangUrl $$parse method.

Closes #5041
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
The urlResolve method was fixed to automatically remove the
volume label from path names to fix issues with the file
protocol on windows where $location.path() was returning
paths where the first segment would be the volume name,
such as "/C:/mypath". See angular#4942 and angular#4928

However, the solution was specific to the $location non-
HTML5 mode, and was implemented at a lower level of
abstraction than it should have been. This refactor moves
the fix to inside of the LocationHashBangUrl $$parse method.

Closes angular#5041
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
The urlResolve method was fixed to automatically remove the
volume label from path names to fix issues with the file
protocol on windows where $location.path() was returning
paths where the first segment would be the volume name,
such as "/C:/mypath". See angular#4942 and angular#4928

However, the solution was specific to the $location non-
HTML5 mode, and was implemented at a lower level of
abstraction than it should have been. This refactor moves
the fix to inside of the LocationHashBangUrl $$parse method.

Closes angular#5041
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ngRoute breaks with file:// protocol in 1.2.0-rc.3
2 participants