Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2013 at 14:29 UTC
Updated:
3 Oct 2014 at 23:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
larowlanWhitespace
This should fail
Comment #2
catchComment #3
marthinal commentedAttached test again.
Comment #4
marthinal commentedUppss wrong test.
Attached again.
Comment #5
marthinal commentedOnce the menu link is correctly generated and we try to edit the menu link, we've got a fail that I have fixed with this code.
I have not found this method and don't know if we should implement it(httpBuildQuery) or simply use drupal_http_build_query.
The menu seems to be generated and editable as expected but I have a fail with an assertion and I need to fix it.
Comment #6
marthinal commentedUsing this patch we can add a menu link with query parameters. Also you can edit the link and remove the parameters. For example you can create a link "test?foo=bar" and rename to "test".
I was working with pwolanin who told me that it's ok to use "Url::buildQuery" to fix the problem "Call to undefined method Drupal\Core\Routing\UrlGenerator::httpBuildQuery()" when building the form.
Comment #8
marthinal commentedMissing use Drupal\Component\Utility\Url;
Comment #9
marthinal commented8: menu_link_query_test-2075149-8.patch queued for re-testing.
Comment #11
dawehnerWe do know store query and fragment and use it when we render the link.