Bugfix for URL generation of CategoryComponent: Checks also for redirect URLs of the form /theme/.*/redirect/?oid=.*

git-svn-id: https://svn.libreccm.org/ccm/trunk@5284 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2018-02-15 18:11:20 +00:00
parent e8c91fd486
commit 9e1d87ee5d
1 changed files with 2 additions and 1 deletions

View File

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