--- title: 'useRequestURL' description: 'Access the incoming request URL with the useRequestURL composable.' links: - label: Source icon: i-simple-icons-github to: https://github.com/nuxt/nuxt/blob/main/packages/nuxt/src/app/composables/url.ts size: xs --- `useRequestURL` is a helper function that returns an [URL object](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL) working on both server-side and client-side. ::code-group ```vue [pages/about.vue] ``` ```html [Result in development]

URL is: http://localhost:3000/about

Path is: /about

``` :: ::callout{icon="i-simple-icons-mdnwebdocs" color="gray" to="https://developer.mozilla.org/en-US/docs/Web/API/URL#instance_properties" target="_blank"} Read about the URL instance properties on the MDN documentation. ::