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

$route cut escaped url before ':/'. #7199

Closed
TiMirLAN opened this issue Apr 22, 2014 · 3 comments
Closed

$route cut escaped url before ':/'. #7199

TiMirLAN opened this issue Apr 22, 2014 · 3 comments

Comments

@TiMirLAN
Copy link

When I have pass the escaped string into $routeParams, I found it unescaped (it's expected) and cutted by ':/'. Is it normal?
example

@IgorMinar IgorMinar self-assigned this Apr 22, 2014
@IgorMinar
Copy link
Contributor

this is because of our normalization for windows where urls can contain "drive prefix". like "C:/". We are being too aggressive in this case and are stripping things we shouldn't be.

To be honest though, setting location path to a url or an encoded url component seems very wrong.

@TiMirLAN
Copy link
Author

Thanks. Yep, it seems not good. But such a behaviour are still little unexpected.

@IgorMinar
Copy link
Contributor

Yes, it is a bug in location. I have a fix for it that I'm testing.

@IgorMinar IgorMinar reopened this Apr 23, 2014
IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Apr 25, 2014
bradyisom pushed a commit to bradyisom/angular.js that referenced this issue Apr 25, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants