Download & Extend

URL arguments are not removed from menu link after editing a menu item

Project:Drupal core
Version:6.9
Component:menu system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

I had created a menu link with a URL argument in it to run into an exposed filter in Views (i.e. example.com/myview?arg=foo). I then changed it to use the arguments built into views because I thought it would be a bit more SEO friendly. When I changed the menu link to the new link, it preserved the argument at the end, even though I removed it when I changed the menu (i.e. example.com/myview/foo?arg=foo).

Steps to reproduce:

  1. Create a view that has an exposed filter that can be changed via a URL argument. I used a taxonomy term so it would be tid=whatever.
  2. Create a menu link with the argument in it. Mine was a primary link.
  3. Change the view to use an argument so the url would become example.com/myview/whatever.
  4. Change the menu link to be the new URL without the URL argument in it.
  5. Notice how the menu link still has the argument in it, in addition to the change made in the menu editor.

My Server:

  • Apache 2.2.11
  • MySQL 5.0.67
  • Drupal 6.9
  • PHP 5.2.6

Comments

#1

Status:active» closed (duplicate)

#682784: Once created, menu item query strings can never be deleted fixed this.