splitbrain / dokuwiki-plugin-translation

Easily setup a multi-language DokuWiki
http://www.dokuwiki.org/plugin:translation
23 stars 24 forks source link

The dropdown should follow `userewrite` URLs + Hreflang Support #248

Closed kondurake closed 1 year ago

kondurake commented 5 years ago

I'm using a multilingual wiki, where all languages are in sub namespaces. My configuration:

$conf['start'] = 'index';
$conf['userewrite'] = '1';
$conf['plugin']['translation']['dropdown'] = 1;

Homepage URLs are looking as follows:

example.com/en/index
example.com/fr/index
example.com/ru/index

The problem is that switching languages from dropdown redirect me to: example.com/index?id=en/index

Since disabling the language dropdown (i.e., $conf['plugin']['translation']['dropdown'] = 0) displays proper URLs, I think it would be nice to take advantage of this.

Rainbow-Spike commented 4 years ago

MY DEAR, THANK YOU SO MUCH FOR HREFLANG HEADINGS, YOU JUST SAVED US!!!