For some reason I suddenly have two favicons in the upper left corner. The first links to /node/ without any dropdown and if I click on it I come to the Drupal welcome page... The next one has the usual dropdown with cron and the rest and links to node/1. My defaul frontpage is set to be node/1....
Is this a bug? How do I remove the additional icon?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | frontpage_dbl_icon_1.patch | 1.7 KB | cdale |
| #3 | frontpage_dbl_icon.patch | 1.59 KB | cdale |
| Untitled.jpg | 5.66 KB | NeoID |
Comments
Comment #1
cdale commentedI too experienced this exact same problem.
It seems that if you change what site_frontpage is, then the previous site_frontpage value is not removed. If you were to change your frontpage to be node/2 after setting it to be node/1, you'll end up with a third icon up there.
I think that a patch for this should use form_alter on the system_site_information_settings form to add an extra submit handler, which would then check if the frontpage has been changed, if it has, delete the old value, and flag the admin_menu for a rebuild.
If I get a chance, I might write a patch for this a bit later today. Assuming no one else beats me too it. :)
Comment #2
cdale commentedI forgot to mention, to remove the extra value that you don't want, I believe something like this might work:
WARNING: UNTESTED CODE, USE AT YOUR OWN PERIL!
db_query('DELETE FROM {menu_links} WHERE module = 'admin_menu' AND menu_name = 'admin_menu' AND link_path = 'node');Comment #3
cdale commentedOk. I think I've solved the issue. At least for myself this works. I've attached a patch against the latest dev version. (I think :)) I've included the code here just in case that doesn't quite work.
Just paste this at the end of admin_menu.module.
Comment #4
cdale commentedHere is a new patch that will work when path aliases are used. Again, I've attached the patch, and added the code here.
Comment #5
NeoID commentedAfter having deactivated and completely removed the module from the DB I added it once again. Now everything seems to work.
Comment #6
todd nienkerk commentedSubscribed. I've witnessed this problem on a few other sites as well. Changing the site's frontpage creates a new icon/favicon in the upper left; the old icon still links to the old frontpage. A new icon is added each time the frontpage is changed -- one of my sites has three! :)
Excellent module, by the way. Incredibly useful and easy to use.
Comment #7
sunJust to let all of you know that this issue is already on my list. However, I think the overall issue has a greater extend, because all of this is technically also related to #280869: Displays lots of items duplicated, flattened on drupal.hu.
Comment #8
pwolanin commentedI think this was resolved by: #295476: admin_menu conflicts with pathauto and in the 6.x-1.1 release
Comment #9
xcorex commentedThank you.
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.