Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Language switcher: 2 minor glitches

Started by Marco Cevoli 8 years ago · 1 replies · 425 views
8 years ago

Hi,

I've put a language switcher on the footer of www.marcocevoli.com. It works fine, but for some reason I don't understand, the link to the current page is www.marcocevoli.com/footer instead of simply www.marcocevoli.com. It's been a while since I installed it, and I can't remember how to change that behaviour.

The second issue is that I would prefer no link for the selected language. This is probably related to the previous one.

Thanks for your help.

8 years ago

Have you customized the twig templates or?
A solution could be the you check the current uri from your page & if it's no longer than your host domain (aka |length) you skip that route like you wanted 🙂
If it helps, great, if not provide some more details 🙂

Good luck

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 12 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 16 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago