From 840e740309c7a4190d0af56a9c063c13d069b59c 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 /. --- src/Foundation/InstalledApp.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Foundation/InstalledApp.php b/src/Foundation/InstalledApp.php index fb1bb6939..fea6cdbe5 100644 --- a/src/Foundation/InstalledApp.php +++ b/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')) );