craft-language-redirector
craft-language-redirector copied to clipboard
craft.languageSwitcher.getUrls() empty outside of sections
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 !
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.