craft-language-redirector icon indicating copy to clipboard operation
craft-language-redirector copied to clipboard

craft.languageSwitcher.getUrls() empty outside of sections

Open ineghi opened this issue 3 years ago • 1 comments

Hi ! craft.languageSwitcher.getUrls() sends back an empty array instead of the usual object when called in every twig template that isn't a section. Is there any way to make it work with routes as well ?

thanks !

ineghi avatar Jun 15 '21 09:06 ineghi

Hi @ineghi. The plugin doesn't support routes just yes, you are right.

It is unlikely that I'll be able to add it in the coming weeks, but feel free to fork the plugin (or create a PR) if you'd like to add the feature before I can.

I'll keep this issue open until it is available.

pierrestoffe avatar Jun 16 '21 10:06 pierrestoffe