Closed Cacamoto closed 1 month ago
@Cacamoto what backend adapter are you using? With the Laravel adapter I'm still getting the full path as usual, see below. The URL value comes from the backend.
Version:
@inertiajs/vue3
version: lagestDescribe the problem:
$page.url returns http://localhost:8000/ instead of /
Steps to reproduce:
Update to v2 and {{ $page.url }}
yes, you are right. when I want to activate the link, I use url.startsWith('profile') it no longer works. I switch to use component === 'Profile/Edit' ? 'active' : 'nope'
ref: https://laracasts.com/series/build-modern-laravel-apps-using-inertia-js/episodes/8
@pedroborges
"inertiajs/inertia-laravel": "2.x-dev"
$page.component === 'Home' ? 'outline' : 'ghost' works as expected
@Cacamoto what backend adapter are you using? With the Laravel adapter I'm still getting the full path as usual, see below. The URL value comes from the backend.
React has this issue also. While the returned url property from the backend is correct, the returned url from React's usePage() has domain included:
const { url } = usePage()
console.log(url)
I second this. Also experiencing it with the React+Laravel adapters. It now returns the fully qualified url with the protocol and the domain.
Version:
@inertiajs/vue3
version: lagestDescribe the problem:
$page.url returns http://localhost:8000/ instead of /
Steps to reproduce:
Update to v2 and {{ $page.url }}