Closed rojtjo closed 11 months ago
@rojtjo This is an elegant solution to fix broken URLs when the application is inside a sub-directory.
When can we expect to get this solution merged?
Would really like to see this merged! Thanks @rojtjo for your great work! I think this could also solve running Laravel Nova 4.x in a subdirectory (based on inertia, broken at the moment).
Thanks a lot for this PR @rojtjo 👍
Hey @reinink is this something you could see getting merged? There are numerous issues which could be resolved with this. Ex. #422 and #437
Any update for this?
Will the PR merged or any other solutions?
This pull request provides an alternative solution to @FrittenKeeZ's pull request ( #499) by allowing you to configure a callback that resolves the current URL. This way it can be easily configured to anyone's needs by overriding the
urlResolver
method in theHandlesInertiaRequests
middleware. When this method returnsnull
it falls back to the default behavior.Example: