Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The logo in the toolbar links hardcoded to /
This is an issue if you have a multilingual site, or your drupal webroot is not on /
Proposed resolution
Change the link in twig to {{ url('') }}
Comment | File | Size | Author |
---|---|---|---|
#2 | 3165373-2-logo_link_language.patch | 1.32 KB | betz |
Comments
Comment #2
betz CreditAttribution: betz commentedComment #4
saschaeggiThanks betz this is a great fix, haven't thought about it! :)
Comment #5
saschaeggiComment #6
gaards CreditAttribution: gaards as a volunteer and at Yle - Finnish Broadcasting Company for Yle - Finnish Broadcasting Company commentedThe menu template in Gin Toolbar needs these changes as well, as now the link would work correctly in the backend but not in the frontend.
Is there a reason why the link wasn't changed for the following line as well? https://git.drupalcode.org/project/gin/-/blob/8.x-3.x/templates/navigati...
Comment #7
betz CreditAttribution: betz commentedah, no, i forgot that one.
As my icon is updated, everything worked for me.
you make the patch?
Comment #9
saschaeggiSeems like the patch did miss the third one and I didn't check tbh. It's now in, thanks for letting me know! :)
Also it's updated on Toolbar as well.
Comment #10
saschaeggiUpdated Credit to include gaards
Comment #11
betz CreditAttribution: betz commented❤️
thanks for the theme by the way, awesome admin theme!
Comment #12
saschaeggiGlad you like it betz 🙃
Comment #13
saschaeggiincluded in alpha26 release