mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +00:00
Don't redirect when clicking on a redirect page in the recent changes list
This commit is contained in:
parent
6bd71b89e2
commit
89d835afa5
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ Make sure you have PHP 7.3+ when you update past this point! It isn't the end of
|
|||
- Squashed a warning when using the fenced code block syntax
|
||||
- If a redirect page sends you to create a page that doesn't exist, a link back to the redirect page itself is now displayed
|
||||
- Really fix bots getting into infinite loops on the login page this time by marking all login pages as `noindex, nofollow` with a robots `<meta />` tag
|
||||
- Navigating to a redirect page from a page list will no longer cause you to automatically follow the redirect
|
||||
- Navigating to a redirect page from a page list or the recent changes list will no longer cause you to automatically follow the redirect
|
||||
- Limited sidebar size to 20% of the screen width at most
|
||||
- Fix the [large blank space problem](https://github.com/sbrl/Pepperminty-Wiki/blob/master/Changelog.md#fixed-3) in all themes
|
||||
- Squashed the text `\A` appearing before tags at the bottom of pages for some users ([ref](https://gitter.im/Pepperminty-Wiki/Lobby?at=5f0632068342f4627401f145))
|
||||
|
|
|
@ -305,7 +305,7 @@ function render_recent_change($rchange)
|
|||
if($rchange_type === "revert")
|
||||
$resultClasses[] = "reversion";
|
||||
|
||||
$result .= "<a href='?page=" . rawurlencode($rchange->page) . (!empty($revisionId) ? "&revision=$revisionId" : "") . "'>$pageDisplayHtml</a> $editorDisplayHtml $timeDisplayHtml <span class='$size_display_class' title='$size_title_display'>($size_display)</span>";
|
||||
$result .= "<a href='?page=" . rawurlencode($rchange->page) . (!empty($revisionId) ? "&revision=$revisionId" : "") . (!empty($pageindex->{$rchange->page}->redirect) ? "&redirect=no" : "" ) . "'>$pageDisplayHtml</a> $editorDisplayHtml $timeDisplayHtml <span class='$size_display_class' title='$size_title_display'>($size_display)</span>";
|
||||
break;
|
||||
|
||||
case "deletion":
|
||||
|
|
Loading…
Reference in a new issue