inertia-vue3-modal icon indicating copy to clipboard operation
inertia-vue3-modal copied to clipboard

Cannot read properties of undefined (reading 'toString') for RedirectBack

Open Royalerror opened this issue 2 years ago • 0 comments
trafficstars

Hello,

The modules work great for me except one thing.

When I try to use the argument redirectBack I always have this error: InertiaModal.vue:86 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toString')

It seems to be due to this line :

const hrefToUrl = (href: string|URL): URL => new URL(href.toString(), window.location.toString());

Thanks for the update

Royalerror avatar Dec 15 '22 16:12 Royalerror