Show us the Vue page template wherever you are using the route helper.
Force route URIs to remain un-nested when using Laravel/Inertia/Vue?
I cannot seem to figure out why in one of my projects, my routes are nesting on to each other (when would that ever be an appropriate setting???) but in another project with the exact same code is generating URIs properly...
For example, I have two routes:
Route::get('/profile/{hash}', [Profile::class,'show'])->name('profile.show');
Route::get('/qr/{hash}', [QR::class,'qrHash'])->name('qr.hash');
This route is generated as https://website.com/profile/c4ca4238 for the example profile page I'm viewing, but on the profile page (the first route) when I link to the second route, the link shows up as https://website.com/profile/c4ca4238/qr/c4ca4238 which is obviously non-existent and incorrect.
I am calling route() with the 3rd param set to true (to make the url absolute) but this doesn't solve the issue for me apparently...
Any ideas?
Please or to participate in this conversation.