qtranxf_convertURL() does not create correct URL
-
In the navigation bar of my page I add a custom menu item which creates a link to the other language. my two languages are
german (de)
andenglish (en)
. german is the primary language. the URL for the link is retrieved viaqtranxf_convertURL($url, $language, false, true)
.After I updated to the newest versoin of qtranslate-x it does not work anymore. I can identify 3 cases. in 2 of them it works, but in the most important case it does not:
1) If you try the frontpage it works. Visit https://crossroads-festival.org/ and then on the top left (below the header logo) there is a button named
English
. The button correctly links to https://crossroads-festival.org/en/2) If you some link, for instance this one: https://crossroads-festival.org/de/festival/veranstaltungsort
then the switcher button incorrectly links to https://crossroads-festival.org/de/festival/venue creating a 404. it actually should link to https://crossroads-festival.org/en/festival/venue3) I have special pages (which use a custom template) for films. Strangely, the button works there. For instance this page https://crossroads-festival.org/de/film/above-all-else correctly links to https://crossroads-festival.org/en/film/above-all-else
My
URL change setting
in the settings of qtranslate-x arePre-Path-Mode
I have no idea why it doesn’t work in case 2). Help is appreciated.
- The topic ‘qtranxf_convertURL() does not create correct URL’ is closed to new replies.