Closed (fixed)
Project:
Administration menu
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Jun 2009 at 16:48 UTC
Updated:
19 Jun 2009 at 21:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidI guess we could do something like rebuilding the admin_menu when the clean URL settings form is submitted. I'll work on a patch if that sounds good.
Comment #2
brianV commentedSounds good to me.
Comment #3
sunPlease test again using the latest development snapshot or CVS checkout. #469716: Issue when using custom_url_rewrite was committed recently. Though it's possible that I don't understand this issue.
Comment #4
brianV commentedSun,
As I said, this is using the June 5 dev package, which postdates that commit. I double checked, and that commit is in the code I have.
When I installed admin_menu, clean URLs were off. I later turned them on. Admin_menu is still using the 'dirty' URLs.
I think Dave Reid is on the right track when he says that the menu many need to be rebuilt after enabling clean URLs.
Comment #5
sunComment #6
sunComment #7
brianV commentedTested it out, noticed some strange behaviour...
1. Installed clean D7 from CVS
2. Installed admin menu dev patched with the patch above.
3. Enabled clean URLS
Admin menu still used the dirty URLs, until I flushed all the caches manually, after which it used the clean URLs.
Furthermore, I disabled Clean URLs again, and Admin menu continued to use the clean urls until I once again flushed the cache manually.
Finally, even though clean urls was disabled, the clean URLs were still resolving instead of sending to a 'page not found' like they are supposed to.
edit: testing #6
Comment #8
brianV commentedPatch #6 works perfectly.
I still have the issue of clean URLs with clean URLs disabled, and dirty URLs resolving with clean URLs enabled, but that may be a core issue.
Comment #9
sunNon-clean URLs always work. That's because clean URLs are simply rewritten by mod_rewrite. Drupal always gets the non-clean URLs.
Comment #10
brianV commentedexcellent
Comment #11
dave reidWorked perfectly for me now. I think it's ready to commit.
Comment #12
dave reidI can't tell if it's because of this patch or not, but I get the menu disappearing on pages now. :/
EDIT: Nevermind. It was the url_rewrite bug that has been fixed. This is all good now.
Comment #13
sunwell, it doesn't work for me. At least, after disabling clean URLs, admin_menu still contains clean URLs.
Comment #14
sunoopsie. Forgot to rebuild the registry. *gngn*
Comment #15
sunphew. That was quite hard to back-port.
Thanks for reporting, reviewing, and testing! Committed to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.