Menu Link Url Options
Add query parameters and URL fragments to Drupal menu links without manually editing the full URL.
Menu Link Url Options enhances Drupal's menu link form by allowing site builders to add optional query parameters and URL fragments to menu links.
Select a destination using Drupal's normal route/path autocomplete, then optionally add parameters such as type=abc or a fragment such as section-2.
For example:
/events?type=abc®ion=ottawa#section-2
This makes it easier for content editors and site builders to create menu links that target filtered pages, specific sections, or other URL-based functionality without manually constructing the entire URL.
Features
- Use Drupal's standard menu link destination autocomplete.
- Add one or more query parameters to a menu link.
- Add an optional URL fragment/anchor.
- Keep the destination, query parameters, and fragment separate and easy to edit.
- Works with existing Drupal menu links.
- Useful for Views filters, contextual filters, tabs, anchors, and other URL-driven functionality.
Post-Installation
Go to your menu and edit a link. Add the query parameter to the link or/and the frament and you're done. These fields are also translatable so you can set different values for each language.
Supporting this Module
Create an issue for feature/bug fix request. If you want to help maintain it, send me a DM.