Skip to content

Commit

Permalink
Fix redirect link issues
Browse files Browse the repository at this point in the history
  • Loading branch information
partydragen committed Jun 4, 2022
1 parent 4f932d1 commit 452f59b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/Core/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* Made by Samerton
* https://github.com/NamelessMC/Nameless/
* NamelessMC version 2.0.0-pr12
* NamelessMC version 2.0.0-pr13
*
* License: MIT
*
Expand Down Expand Up @@ -150,7 +150,7 @@ public function __construct(Language $language, Pages $pages, User $user, Naviga

// Get redirect URL if enabled
if ($custom_page->redirect == 1) {
$redirect = Output::getClean($custom_page->link);
$redirect = $custom_page->link;
}

$pages->addCustom(Output::urlEncodeAllowSlashes($custom_page->url), Output::getClean($custom_page->title), !$custom_page->basic);
Expand Down
2 changes: 1 addition & 1 deletion modules/Core/pages/panel/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@
'PAGE_REDIRECT' => $language->get('admin', 'page_redirect'),
'PAGE_REDIRECT_VALUE' => $page->redirect,
'PAGE_REDIRECT_TO' => $language->get('admin', 'page_redirect_to'),
'PAGE_REDIRECT_TO_VALUE' => (isset($_POST['redirect_link']) ? Output::getClean(Input::get('redirect_link')) : $page->link),
'PAGE_REDIRECT_TO_VALUE' => (isset($_POST['redirect_link']) ? Output::getClean(Input::get('redirect_link')) : Output::getClean($page->link)),
'TARGET' => $language->get('admin', 'page_target'),
'TARGET_VALUE' => $page->target,
'UNSAFE_HTML' => $language->get('admin', 'unsafe_html'),
Expand Down

0 comments on commit 452f59b

Please sign in to comment.