Problem/Motivation:
While creating menu links found an issue. The menu links doesn't validate the links that is being added.
Eg: When I am adding a menu link and provide the path as /node/10 the menu link is created even though the node doesn't exist. Also if I add /some-path-which-doesnt-exist no error is thrown.
Proposed solution
There should be a validation to check if the menu links that is being added is valid/accessible.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | menu_link_validation_2677626_7.patch | 1.54 KB | arunkumark |
| menu_link_wrong_path.png | 26 KB | imalabya | |
| menu_link_saved.png | 21.93 KB | imalabya |
Comments
Comment #2
dawehnerTo be honest, this is kinda by design of the menu system in Drupal 8. People wanted to be able to link stuff which is not yet defined in Drupal, because they considered that as the better UX. Sadly I don't find the issue, but it is probably linked from #2407505: [meta] Finalize the menu links (and other user-entered paths) system
Comment #4
rakesh_verma commentedIt is more of a feature request than a bug report. Changing the issue category for now.
Comment #5
arunkumarkComment #6
dawehnerThe validation used to be the behaviour in D6/D7 but people wanted it to be different, so changing it back is pointless IMHO.
Comment #7
arunkumark@dawehner,
Thanks for your comment, i have patched for checking the Given URL in menu is valid or not. If this patch is useful we can use in next version.
Comment #10
revathi.b commented#7 is worked for me.Thanks.
Comment #11
Buvaneshwari.V commentedHi Arun,
#7 I have reviewed the patch, it works as expected!
Thanks.
Comment #26
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #27
smustgrave commentedSince there's been no follow up going to close out, can always be re-opened
Thanks all!