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

Change in decoding URL in routing only when using Firefox. #7791

Closed
MaissaJabri opened this issue Jun 11, 2014 · 2 comments
Closed

Change in decoding URL in routing only when using Firefox. #7791

MaissaJabri opened this issue Jun 11, 2014 · 2 comments

Comments

@MaissaJabri
Copy link

I have this element in the DOM;

<a class="k-in" href="/index.html#/scenario/DG/CCS/21x3/CCS%20%234%20%28June%2028%29">CCS #4 (June 28) </a>. 

When I click on the link above I'm redirected to the following URL; http://localhost:8085/index.html#/scenario/DG/CCS/21x3/CCS%20%234%20%28June%2028%29#4%20%28June%2028%29
When I added the following code;

$rootScope.$on('$locationChangeStart', function (arg, newl , old) {
   console.log(old , ' TO ', newl);
});

In the Firebug console I can see 3 redirections:

1- 
http://localhost:8085/index.html#/scenario/DG/TRAD/15x7/TRAD%20Original TO http://localhost:8085/index.html#/scenario/DG/CCS/21x3/CCS%20%234%20(June%2028)
2- http://localhost:8085/index.html#/scenario/DG/CCS/21x3/CCS%20%234%20(June%2028) TO http://localhost:8085/index.html#/scenario/DG/CCS/21x3/CCS%20#4%20(June%2028)
3- http://localhost:8085/index.html#/scenario/DG/CCS/21x3/CCS%20#4%20(June%2028) TO http://localhost:8085/index.html#/scenario/DG/CCS/21x3/CCS%20%234%20(June%2028)#4%20(June%2028)

The issue doesn't take place when the element's name doesn't contain the hash character and I only see one redirection like the first one above. The issue doesn't take place in Chrome either.

Any clues please,
Thanks!

@btford
Copy link
Contributor

btford commented Jul 23, 2014

Please:

  1. Provide a reproduction via plnkr.co or jsfiddle.
  2. Note what version of Angular this occurs in.
  3. Check that the problem persists after updating Angular.

This saves us a lot of time. Thanks!

@btford btford added this to the Backlog milestone Jul 23, 2014
@Narretz
Copy link
Contributor

Narretz commented Jun 16, 2015

Closing because no info was provided.

@Narretz Narretz closed this as completed Jun 16, 2015
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

3 participants