Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
shortcut.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2015 at 17:14 UTC
Updated:
6 Jan 2016 at 14:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
eiriksmComment #3
eiriksmComment #4
mac_weber commentedAdding more related issues from other sub systems and modules
Comment #5
dawehnerWell ideally we would add support for protocol relative URLs, but some people disagree with that :(
For ow testing the right thing is fine.
Given that this is test only this can land in both 8.0.x and 8.1.x
Comment #6
eiriksmI also agree with that. But if we want to add that, then this test would have to change into this anyway, I guess ;)
Comment #7
alexpottI think we should take the opportunity to improve the test so that it would fail if we changed it back to
'/' . $path['alias'],Comment #8
eiriksmHm, not sure I follow what you want to add?
This issue is created because it will start to fail if #2462279: Language prefix for custom menu link paths are saved but not used gets committed, because that would disallow paths starting with //. Right now, if you try to add a path like that (say for example //google.com) shortcut will get saved and try to point to the internal path _base_path_/google.com. So that future new bug fix will ensure the test coverage, I think.
To answer your question, I don't know how to improve the test in this issue. So to improve the test... we could check that the string '//' is not there, but that feels like it was not what you asked for.
Another way to improve it was to add "//alias" to the list of path we are not allowed to save, but that would unfortunately still not pass (that would pass if we committed #2462279: Language prefix for custom menu link paths are saved but not used).
I understand what you are asking for, but that would be covered by that future bug fix (which should rtbc after this lands). So, in a hopeful manner, I am changing the status back to "needs review". :)
Sorry if I misunderstood your request. :)
Comment #9
alexpottSo why not make this fix in #2462279: Language prefix for custom menu link paths are saved but not used?
Comment #10
eiriksmWell, because I initially did that, but was asked to create a seperate issue for this seemingly unrelated change to make it easier for commiters. :D
If it is fine by you, I am happy to include this fix in that issue
Comment #11
alexpottFair enough!
Committed 382a8a4 and pushed to 8.0.x and 8.1.x. Thanks!