Skip to content

Commit

Permalink
Merge pull request pkp#10803 from bozana/10790
Browse files Browse the repository at this point in the history
pkp#10790 do not redirect in PKPPageRouter in case of install and help page, remove header and sidebar installation page
  • Loading branch information
bozana authored Jan 15, 2025
2 parents e842a48 + ef97caf commit 5b69986
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions classes/core/PKPPageRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
class PKPPageRouter extends PKPRouter
{
/** @var array pages that don't need an installed system to be displayed */
public $_installationPages = ['install', 'help', 'header', 'sidebar'];
public $_installationPages = ['install', 'help'];

public const ROUTER_DEFAULT_PAGE = './pages/index/index.php';
public const ROUTER_DEFAULT_OP = 'index';
Expand Down Expand Up @@ -169,9 +169,6 @@ public function route(PKPRequest $request): void
// the system is not yet installed. Redirect to
// the installation page.
$request->redirect(Application::SITE_CONTEXT_PATH, 'install');
} elseif (Application::isInstalled() && in_array($page, $this->getInstallationPages())) {
// Redirect to the index page
$request->redirect(Application::SITE_CONTEXT_PATH, 'index');
}

// Redirect requests from logged-out users to a context which is not
Expand Down

0 comments on commit 5b69986

Please sign in to comment.