From 1293b95fc13b7f82a780965abf600b528b079318 Mon Sep 17 00:00:00 2001 From: w-4 <36057469+w-4@users.noreply.github.com> Date: Thu, 5 Dec 2019 05:37:33 +0700 Subject: [PATCH] Fix update page with custom base path (#1947) Calling UpdateHandler causes RouteNotFoundException when basepath is not /. --- framework/core/src/Foundation/InstalledApp.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/core/src/Foundation/InstalledApp.php b/framework/core/src/Foundation/InstalledApp.php index fb1bb6939..fea6cdbe5 100644 --- a/framework/core/src/Foundation/InstalledApp.php +++ b/framework/core/src/Foundation/InstalledApp.php @@ -92,6 +92,7 @@ class InstalledApp implements AppInterface private function getUpdaterHandler() { $pipe = new MiddlewarePipe; + $pipe->pipe(new BasePath($this->basePath())); $pipe->pipe( new DispatchRoute($this->container->make('flarum.update.routes')) );