EpiDoc / EFES

EFES (EpiDoc Front End Services) is a custom and readily customizable platform for publication and search/indexing of EpiDoc files, based on the Kiln platform
Apache License 2.0
31 stars 38 forks source link

Bug in language_switch code causes home page to miss final '/' #40

Closed gabrielbodard closed 6 years ago

gabrielbodard commented 6 years ago

When language switch code is implement in a menu item, the XSLT in webapps/kiln/stylesheets/menu/normalize-menu replaces the language code in the URL, but if the current URL is the home page (i.e. ends with /{lang}/) the final slash is missing from the href, and so the page linked to throws an error.

gabrielbodard commented 6 years ago

Fixed at 8dd5871207eecb9d68b443638460c6892849200e with a test in the template for @language_switch to add a closing slash if there is no string in the $url-end variable.

Probably needs robust testing!