From 58107d9c9d42a508266186d927a5ec881d13fda6 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Sat, 23 Aug 2025 20:22:13 +0200 Subject: [PATCH] url was incorrect when Nextcloud was installed under a subdirectory (fixes #4952) Signed-off-by: Andras Timar --- lib/Middleware/WOPIMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Middleware/WOPIMiddleware.php b/lib/Middleware/WOPIMiddleware.php index 09ab67c54b..26447dd4de 100644 --- a/lib/Middleware/WOPIMiddleware.php +++ b/lib/Middleware/WOPIMiddleware.php @@ -92,7 +92,7 @@ public function beforeController($controller, $methodName) { throw new WopiException('X-WOPI-TimeStamp header is older than 20 minutes'); } - $url = $this->urlGenerator->getBaseUrl() . $this->request->getRequestUri(); + $url = $this->urlGenerator->getAbsoluteURL($this->request->getRequestUri()); $isProofValid = $this->proofKeyService->isProofValid( $accessToken,