feature-redirect: fix comment

This commit is contained in:
Starbeamrainbowlabs 2020-07-07 21:15:14 +01:00
parent 8aff75a805
commit 47b5855396
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function update_redirect_metadata(&$index_entry, &$pagedata) {
$index_entry->redirect_target = $matches[1];
$index_entry->redirect_absolute = false;
}
// We don't disable absolute redirects here, because it's the view action that processes them - we only register them here. Checking here would result in pages that are supposed to be redirects being missed if redirect_absolute_enabled is turned on after such a page is created.
// We don't disable absolute redirects here, because it's the view action that processes them - we only register them here. Checking here would result in pages that are supposed to be redirects being missed if redirect_absolute_enable is turned on after such a page is created.
elseif(preg_match("/^# ?REDIRECT ?\[[^\]]+\]\(([^)]+)\)/", $pagedata, $matches) === 1) {
$index_entry->redirect = true;
$index_entry->redirect_target = $matches[1];