Don't add language extension to Category links when /redirect/?oid= is used

git-svn-id: https://svn.libreccm.org/ccm/trunk@5007 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2017-09-27 05:46:09 +00:00
parent 305feae36f
commit 233938ae53
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ public abstract class CategoryComponent extends AbstractComponent {
content.addAttribute("name", urlStub);
}
content.addAttribute("description", description);
if (CMSConfig.getInstanceOf().getUseLanguageExtension()) {
if (CMSConfig.getInstanceOf().getUseLanguageExtension()
&& !url.startsWith("/redirect/")) {
content.addAttribute("url",
String.format("%sindex.%s",
url,