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-94f89814c4dfmaster
parent
e8c91fd486
commit
9e1d87ee5d
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue