> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: siteLocation.path() # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/location/path.md # Method Description: Gets the path of the current page's URL. The path for a regular page is after the `baseUrl`. If the page is a dynamic page or a router page, the `prefix` appears after the base URL, before the path. Premium sites: Path for a regular page, without a prefix: ![Premium site path](https://wixmp-833713b177cebf373f611808.wixmp.com/images/velo-images/media_url_premium_path.png "Premium site path") Path for a dynamic or router page with a prefix: ![Premium site path](https://wixmp-833713b177cebf373f611808.wixmp.com/images/velo-images/media_url_premium_path_with_prefix.png "Premium site path with a prefix") Free sites: Path for a regular page, without a prefix: ![Free site path](https://wixmp-833713b177cebf373f611808.wixmp.com/images/velo-images/media_url_free_path.png "Free site path") Path for a dynamic or router page with a prefix: ![Free site path](https://wixmp-833713b177cebf373f611808.wixmp.com/images/velo-images/media_url_free_path_with_prefix.png "Free site path") # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Get the path of the current page's URL ```javascript import { location } from '@wix/site-location'; // Premium site URL: "https://www.domain.com/elephant?species=african-elephant#desc" // Free site URL: "https://user_name.wixsite.com/zoo/elephant?species=african-elephant#desc" let path = await location.path(); // ["elephant"] ```