Skip to content

Conversation

@simon-tma
Copy link
Contributor

If inertia.ssr.url ends with a /, then generated URL ends with //render which results in a 404 response from the SSR server which then causes a very confusing error message in Laravel (access to undefined index "head").

Instead, remove a trailing slash from the URL before appending /render.

@joetannenbaum
Copy link
Contributor

Looks good, thank you 👍

@joetannenbaum joetannenbaum merged commit 6276378 into inertiajs:2.x Apr 10, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants