<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
</option>
+ <option name="url_to_lowercase">
+ <categoryname>general.page.seo</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>1</defaultvalue>
+ </option>
<option name="url_title_component_replacement">
<categoryname>general.page.seo</categoryname>
<optiontype>textarea</optiontype>
// trim to 80 characters
$parameters['title'] = rtrim(mb_substr($parameters['title'], 0, 80), '-');
+ if (URL_TO_LOWERCASE) {
+ $parameters['title'] = mb_strtolower($parameters['title']);
+ }
+
// encode title
if ($encodeTitle) $parameters['title'] = rawurlencode($parameters['title']);
}
- $parameters['controller'] = $controller;
+ $parameters['controller'] = (URL_TO_LOWERCASE) ? mb_strtolower($controller) : $controller;
$routeURL = RouteHandler::getInstance()->buildRoute($parameters, $isACP);
if (!$isRaw && !empty($url)) {
$routeURL .= (strpos($routeURL, '?') === false) ? '?' : '&';
}
else if (!RequestHandler::getInstance()->isACPRequest()) {
$landingPage = PageMenu::getInstance()->getLandingPage();
- if ($landingPage !== null && ($landingPage->getController() == $components['controller'])) {
+ if ($landingPage !== null && strcasecmp($landingPage->getController(), $components['controller']) == 0) {
$ignoreController = true;
}
}
<li>WCF 2.0: „index.php/Thread/123-Title/“</li>
<li>WCF 2.1+: „?Thread/123-Title/“</li>
</ul>]]></item>
+ <item name="wcf.acp.option.url_to_lowercase"><![CDATA[Durchgehende Kleinschreibung in Links aktivieren]]></item>
+ <item name="wcf.acp.option.url_to_lowercase.description"><![CDATA[Links verwenden keine Großbuchstaben mehr, aus „Thread/1-Dies-ist-ein-Test/“ wird „thread/1-dies-ist-ein-test/“.]]></item>
<item name="wcf.acp.option.module_ad"><![CDATA[Werbung]]></item>
<item name="wcf.acp.option.captcha_type"><![CDATA[Captcha-Art]]></item>
<item name="wcf.acp.option.register_use_captcha"><![CDATA[Captcha in Registrierung aktivieren]]></item>
<li>WCF 2.0: „index.php/Thread/123-Title/“</li>
<li>WCF 2.1+: „?Thread/123-Title/“</li>
</ul>]]></item>
+ <item name="wcf.acp.option.url_to_lowercase"><![CDATA[Force lower-case links]]></item>
+ <item name="wcf.acp.option.url_to_lowercase.description"><![CDATA[Links will no longer contain uppercase letters turning links like “Thread/1-Hello-I-am-John-Doe/” into “thread/1-hello-i-am-john-doe/”.]]></item>
<item name="wcf.acp.option.module_ad"><![CDATA[Ads]]></item>
<item name="wcf.acp.option.captcha_type"><![CDATA[Captcha Type]]></item>
<item name="wcf.acp.option.register_use_captcha"><![CDATA[Enable Captcha protection during registration]]></item>