Just ran into an issue when trying to add a toolbar shortcut for a path alias to a node. Basically the node path is node/123 but it has an alias of content/mynode. When I add the shortcut to content/mynode it appears to add everything ok. However, it doesn't add the item to the toolbar, and when I flush the caches it gets automatically removed from the list of shortcuts.
What seems to be happening, is that the alias has no actual menu router path, so when I clear the caches the menu cache automatically checks for bunk links and removes them. What I think the toolbar module should do is convert the paths from aliases to normal paths when they're encountered. The patch attached should mostly do that.
- Scott
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 939968.patch | 1.31 KB | dankh |
| toolbar_normalpath.patch | 675 bytes | hadsie |
Comments
Comment #1
hadsie commentedI'm having some weird issues with this patch, so it may be bunk...
Specifically, it doesn't seem to be saving some toolbar shortcuts properly when the module is used in an install profile. I haven't got to the bottom of why yet.
Comment #2
dankh commentedI found the error, when checking for alias , and alias was found the shortcut link_path value was not updated. Can you please test the patch. It worked for me.
Comment #3
dankh commented