Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2014 at 00:03 UTC
Updated:
29 Jul 2014 at 23:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pwolanin commentedHere's the fix, still needs an added test case.
downgrading to major, since I'm not sure this is called this way currently in core, but the code is clearly broken and caught me up in a patch.
Comment #2
pwolanin commentedHere's the test alone (should have 1 fail), updated patch, and increment.
Also adds a small optimization to the Url class so we don't check again that the url is external.
not that I moved the $url->isExternal() check up a little since we shouldn't need any of the logic related to the active class for an external link.
Comment #3
tim.plunkettThis is a sign you should have a new test method. Can you just put that new test in
public function testGenerateFromUrlExternal()?Comment #4
pwolanin commentedSure.
Comment #5
pwolanin commentedsmall wording fix.
Comment #7
pwolanin commentedtim.plunkett suggests passing the external flag to the UrlGenerator should be put in a separate issue.
Comment #8
tim.plunkettExcellent, thanks
Comment #9
pwolanin commentedComment #10
webchickCommitted and pushed to 8.x. Thanks!
Comment #12
catchDoes that issue exist?
Comment #13
pwolanin commentedHere's the follow-up with initlal patch: #2266377: Speed up UrlGenerator a little by setting the 'external' option in the Url object