Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Jul 2014 at 14:48 UTC
Updated:
14 Feb 2015 at 01:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
olli commentedAnother try.
Comment #5
olli commentedComment #6
dawehnerOh, I really wanted to have a look at that
Do we really still need this todo here? OT
Comment #8
olli commentedComment #9
dawehnerMh, why aren't all strings available as the title?
Comment #10
olli commentedThey should be.
Comment #11
dawehnerTrue!
Comment #12
alexpottHow are we going to help people not make this mistake in the future - would seem a really easy thing to get confused.
getPathFromRoute() is marked for deprecation.
Comment #13
olli commentedGood points..
#12.1 - Are you suggesting that there might be a bug RedirectResponseSubscriber::checkRedirectUrl() because it redirects to an invalid internal path?
#12.2 - I have no idea what to use there instead.. even that checkRedirectUrl() uses it.
We still have drupal_get_destination(), which is not deprecated and might work in both cases...
Comment #14
olli commented#12.1 That ::getSystemPath is also deprecated. Here's a patch with drupal_get_destination().
Filed #2373017: No delete link when editing a menu, only reset links for this.
Comment #17
dawehnerThis is certainly much better. Ideally drupal_get_destination() could use something like internally, but well, that is out of scope of this issue.
Comment #18
olli commentedHere's a reroll.
Comment #19
olli commentedHow do I get the system path/set destination if I need to use something else than current path?
Comment #21
idebr commentedThis patch also fixes #2395189: Deletion of menu link results in error, so bumping to major.
The edit and delete links for menu items are currently hardcoded to return back to the overview page. Does this question apply to this issue?
Comment #22
kgoel commentedComment #23
kgoel commentedComment #25
pwolanin commentedThanks for fixing the tests to use routes.
The continued use of drupal_get_destination() is a bit frustrating, but I think it's the best we have right now.
Possibly should move this logic at least to the RouteMatch?
Comment #26
idebr commentedThe alternative would be to make ConfirmFormHelper::buildCancelLink to accept urls instead of uris.
Note: this already works for form redirects/destination urls
Comment #27
kgoel commentedComment #28
kgoel commentedComment #29
pwolanin commentedThanks. We need to make a replacement for drupal_get_destination() and/or fix the way the destination query string works, but that's beyond the scope of this patch.
Comment #30
alexpottThis issue addresses a major bug and is allowed per https://www.drupal.org/core/beta-changes. Committed 7816819 and pushed to 8.0.x. Thanks!
Yep
drupal_get_destination()does seem out-of-place. Also how are we going to ensure people don't make this mistake in contrib?