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 Yin4mo 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
lency4mo ago
Nuxt
useRequestURL · Nuxt Composables
Access the incoming request URL with the useRequestURL composable.
Trauma Zombie
Trauma ZombieOP4mo ago
Oh, I really missed this one. Thank you.

Did you find this page helpful?