Skip to content
This repository was archived by the owner on Apr 12, 2024. 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

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 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 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
Contributor

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

@caitp caitp closed this in 8b33de6 Jan 25, 2015
petebacondarwin added a commit that referenced this pull request Jan 25, 2015
@petebacondarwin
Copy link
Contributor

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.

Shift + Click is not handled
4 participants