From bf059248ab73bcaccbea057d0a9fa11446fa0e20 Mon Sep 17 00:00:00 2001 From: ppodds Date: Fri, 7 Jan 2022 02:36:01 +0800 Subject: [PATCH] Fix page.url doesn't contain url prefix (#333) --- src/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Response.php b/src/Response.php index 7a20dbb0..94d67432 100644 --- a/src/Response.php +++ b/src/Response.php @@ -96,7 +96,7 @@ public function toResponse($request) $page = [ 'component' => $this->component, 'props' => $props, - 'url' => $request->getRequestUri(), + 'url' => $request->getBaseUrl().$request->getRequestUri(), 'version' => $this->version, ];