I have created a Wordpress theme that needs to be in German and English. In the navigation I have a button which should change the language depending on what language they are currently using. (If they are viewing the english page it should display "Deutsch" and vice versa.)
I'm using qTranslate Plus and have chosen to display the language code in the url (/de or /en). My main problem lies when I'm on a custom page (Wordpress page with a template) (/custom-page) and change the language it doesn't change to german although in the source code the link displays /de/custom-page. It completely ignores the language code and takes me to /custom-page again. So it seems to be stripping the language code out.
Is this standard Wordpress behaviour and if so, how can I disable it? Also is there a better, more reliable way to change the language? Would storing the language in a session work?
Note: Both "Hide untranslated content" and "Hide URL language information for default language." are unchecked.
Thanks in advance, Peter