Skip to main content
Brimham Rocks, Yorkshire, UK

Astro: How to get the URI path for the current page

This is a new website and is under active development. There will be some odd-looking layouts and colours while this is happening. Please bear with me and check back again to see any updates.
const pathname = new URL(Astro.request.url).pathname;