Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
shortcut.module
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
23 Jun 2015 at 23:36 UTC
Updated:
11 Jul 2015 at 09:04 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #1
kattekrab commentedNoticed the same problem when trying to add a short cut for multiple themes.
Comment #2
kattekrab commentedDoes not seem to be a problem with People section. Was able to add Roles and Permissions as well as Top level People.
Comment #3
jibranThis issue is introduced in #2478151: Shortcuts to pages generated by views are not recognized as added to the shortcutset and are being added multiple times. After reverting that commit the issue got fixed.
Comment #4
lahoosascoots commentedLooks like the issue in the last issue was that it was using the full parameters instead of the raw parameters.
As the patch removed the check for the full parameters it was only checking on route name. The route name for all content types is node.add they they are seen as the same page.
This patch should fix this issue and still work for admin/people.
Comment #5
lahoosascoots commentedComment #6
jibran@lahoosascoots nice fix. Can we add quick tests for the issue described in IS? You can look at test added in #2478151: Shortcuts to pages generated by views are not recognized as added to the shortcutset and are being added multiple times for reference.
Comment #7
lahoosascoots commentedWith tests. Test only patch should fail.
(Oops, put wrong comment #)
Comment #8
lahoosascoots commentedGuess my test patches wern't good.
Comment #9
lahoosascoots commentedAnd fixing my indentation issue.
Will fix anything that pops up tomorrow.
Comment #10
lahoosascoots commentedComment #11
jibranNeeds a space after
//and first line is more then 80 chars. Please see https://www.drupal.org/node/1354#inline for reference.Comment #12
kattekrab commentedI had manually tested patch from #7 on simplytest.me and it works!
Screenshot:

Comment #13
kattekrab commentedComment #15
lahoosascoots commentedComments fixed.
Comment #17
willzyx commentedoops sorry for the inconvenience..
Manually tested patch in #17 and it seems to solve the issue and it doesn't seems to generate problems with pages generated by views.
Patch looks good, just a nitpick
Comments need a trailing period
Comment #18
lahoosascoots commentedHow DARE you make me do 4 more seconds of work!? =P
Should be the final patch.
Comment #20
willzyx commentedLooks good to me
Comment #21
alexpottThis is a negative assertion - can we also click the link to add the shortcut for the article page and ensure it gets added.
Comment #22
jibranGreat idea. Here we go. Setting it back to RTBC because I just added two asserts.
Comment #23
kattekrab commentedJust did another manual test. Working nicely. RTBC++
Comment #24
alexpottThis issue addresses a major bug and is allowed per https://www.drupal.org/core/beta-changes. Committed 84713a3 and pushed to 8.0.x. Thanks!
Comment #26
kattekrab commented\o/
Thanks @alexpott @jibran @willzyx @lahoosascoots :-)