Skip to content
This repository has been archived by the owner. It is now read-only.

fix($location): don't rewrite when link is shift-clicked #9906

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Nov 4, 2014

Closes #9904

@@ -1471,6 +1471,19 @@ describe('$location', function() {
});


it('should not rewrite when clicked with shift pressed', function() {
configureService({linkHref: 'base/a?b=c', html5Mode: true, supportHist: true});
Copy link
Contributor Author

@caitp caitp Nov 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @tbosch --- the other tests in this suite don't seem to be quite right. In testing, even without this fix, if linkHref was not preceded with base/, we would not rewrite anyways because we would determine the link to not be within the app url. So I think something is a bit wrong with these tests.

However, with the test written like this, without the fix we fail and with we pass.

@tbosch
Copy link
Contributor

@tbosch tbosch commented Nov 7, 2014

@caitp Please ask @petebacondarwin to review. Really busy...

@tbosch tbosch assigned petebacondarwin and unassigned tbosch Nov 7, 2014
@caitp
Copy link
Contributor Author

@caitp caitp commented Jan 23, 2015

3 months later, bitrotten patch, and no comment from assigned reiewer. @petebacondarwin were you going to do this? it's a one liner

@petebacondarwin
Copy link
Member

@petebacondarwin petebacondarwin commented Jan 23, 2015

:-) - I'll look over the weekend.

@petebacondarwin
Copy link
Member

@petebacondarwin petebacondarwin commented Jan 25, 2015

Added a second commit that fixes the tests you pointed out @caitp - 2f32614

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

Successfully merging this pull request may close these issues.

4 participants