SOLVED: How to get full URL including domain?

Hi guys, how to get full URL of current page including domain?
useRoute().fullPath
useRoute().fullPath
returns it without domain.
3 Replies
Timothy Yin
Timothy Yin2mo ago
maybe you can use
window.location.href
window.location.href
or
`${window.location.origin}${window.location.pathname}`
`${window.location.origin}${window.location.pathname}`
lency
lency2mo ago
Nuxt
useRequestURL · Nuxt Composables
Access the incoming request URL with the useRequestURL composable.
Trauma Zombie
Trauma ZombieOP2mo ago
Oh, I really missed this one. Thank you.
Want results from more Discord servers?
Add your server