$smwgUseCategoryRedirect

From Linux Web Expert


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgUseCategoryRedirect
Description Set whether redirects on categories should be detected and used as annotation value
Default setting true
(Other) available settings
false

Allows to disable detecting redirects on categories and use them as annotation value

Software Semantic MediaWiki
Since version
Until version
Configuration Query settings
Keyword redirects · category


__NOBREADCRUMBLINKS__

$smwgUseCategoryRedirect is a configuration parameter that sets whether redirects on categories should be detected and used as annotation value1.

The configuration parameter was meant to be introduced in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki2 but removed in favour of option SMW_CAT_REDIRECT to configuration parameter $smwgCategoryFeaturesSets the behaviour of the query features related to category handling3 prior to the release.

Default setting

$smwgUseCategoryRedirect = true;

This means that redirects on categories are being detected and used as annotation value. Moreover errors are being tracked on invalid redirects beyond special page "Browse"No description was provided..

Changing the default setting

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Disable detecting redirects on categories and use them as annotation value
$smwgUseCategoryRedirect = false;

This means that redirects on categories are not being detected and used as annotation value. Thus it will not be possible to track errors on invalid redirects and make them discoverable beyond special page "Browse"No description was provided..

See also

#scite could not render a citation text for reference "gh:smw:2471" because type "pullrequest" was not assigned to a template.