-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Allow automatic rewriting of links to be disabled in ngLocation #5487
Conversation
I'm sorry, but I wasn't able to verify your CLA signature. CLA signature is required for any code contributions to AngularJS. Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match. If you signed the CLA as a corporation, please let me know the company's name. Thanks a bunch! PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR. |
Done.
|
thanks. this looks quite good. there are several ways to avoid the rewrite on link-by-link basis but I agree that there should be a global setting as well. we'll merge this in in when we open the branch for 1.3 PRs |
Yeah that was my thinking as well, the app I'm working on eventually got to
|
@IgorMinar Any idea what the time frame on this is? |
@IgorMinar Looks like 1.3 is in beta, do I need to do anything else to get this merged? |
Currently, when the location provider is set to html5 mode, all links on the page are hijacked and automatically rewritten. While this may be desirable behavior in some cases (such as using ngRoute), not all cases where html5 mode are enabled imply the desire for this behavior. One example would be an application using the [ui-router](https://github.com/angular-ui/ui-router) library, with some pages that exist outside of angular. Links that are meant to go through the router use the `ui-sref` directive, so the rewrite behavior is unnecessary.
Pinging again to see if we can get this merged in before 1.3 drops |
02dc2aa
to
fd2d6c0
Compare
oops.. I missed this one. scheduling for rc5 |
we don't have your CLA signature. can you please submit the CLA form: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#-signing-the-cla thanks! |
Done |
the email address in the patch is different from the one you used to sign CLA. can you please sign again with the different email address or change the patch to use the other email address? sorry about these complications, we have to do it avoid any legal issues for the whole open source community that uses Angular. |
I made the match based on github username |
Thanks, Igor. Do I need to do anything else? On Tue, Oct 7, 2014 at 5:26 PM, Igor Minar notifications@github.com wrote:
Thanks, |
Currently, when the location provider is set to html5 mode, all links on the page are hijacked and automatically rewritten. While this may be desirable behavior in some cases (such as using ngRoute), not all cases where html5 mode are enabled imply the desire for this behavior. One example would be an application using the [ui-router](https://github.com/angular-ui/ui-router) library, with some pages that exist outside of angular. Links that are meant to go through the router use the `ui-sref` directive, so the rewrite behavior is unnecessary. Closes angular#5487
I rebased your PR and created #9487 with some modifications |
abdaab7
to
30996f8
Compare
Currently, when the location provider is set to html5 mode, all links on the page are hijacked and automatically rewritten. While this may be desirable behavior in some cases (such as using ngRoute), not all cases where html5 mode are enabled imply the desire for this behavior. One example would be an application using the [ui-router](https://github.com/angular-ui/ui-router) library, with some pages that exist outside of angular. Links that are meant to go through the router use the `ui-sref` directive, so the rewrite behavior is unnecessary. Closes angular#5487
Currently, when the location provider is set to html5 mode, all links on the page are hijacked and automatically rewritten. While this may be desirable behavior in some cases (such as using ngRoute), not all cases where html5 mode are enabled imply the desire for this behavior. One example would be an application using the [ui-router](https://github.com/angular-ui/ui-router) library, with some pages that exist outside of angular. Links that are meant to go through the router use the `ui-sref` directive, so the rewrite behavior is unnecessary. Closes angular#5487
Currently, when the location provider is set to html5 mode, all links
on the page are hijacked and automatically rewritten. While this may be
desirable behavior in some cases (such as using ngRoute), not all cases
where html5 mode are enabled imply the desire for this behavior.
One example would be an application using the
ui-router library, with some
pages that exist outside of angular. Links that are meant to go through
the router use the
ui-sref
directive, so the rewrite behavior isunnecessary.
This adds the ability to disable the behavior by calling
For backwards compatibility, the default value of this option is
true