emargareten / inertia-modal

Implement backend-driven modal dialogs for Laravel+Inertia apps.
MIT License
62 stars 8 forks source link

fix: base url is duplicated when using a custom subdirectory #32

Closed flexponsive closed 6 months ago

flexponsive commented 6 months ago

There was a long-standing bug in inertia that the base URL was duplicated in the Response "url" property. This issue arose when the app was hosted under https://my.domain/subdirectory and caused URLs to be set to https://my.domain/subdirectory/subdirectory.

The issue was fixed upstream in https://github.com/inertiajs/inertia-laravel/pull/592 and I am proposing to apply the same fix here.

Thank you for this amazing package!

emargareten commented 6 months ago

Thanks!