Skip to content

Commit 3eb6b1e

Browse files
committed
[1.x] Ensure Inertia Response generate also compatible with Inertia.js 2
This would allow application to uses multiple packages that use both Inertia.js 1 and 2 rely can `inertia/inertia-laravel` v1 before fully migrating to v2. Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent ddf47e9 commit 3eb6b1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function toResponse($request)
9595
'props' => $props,
9696
'url' => Str::start(Str::after($request->fullUrl(), $request->getSchemeAndHttpHost()), '/'),
9797
'version' => $this->version,
98+
'encodeHistory' => false,
9899
];
99100

100101
if ($request->header(Header::INERTIA)) {

0 commit comments

Comments
 (0)