> 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.baseUrl() # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/location/base-url.md # Method Description: Gets the base URL of the current page. Premium sites: ![Premium site baseUrl](https://wixmp-833713b177cebf373f611808.wixmp.com/images/velo-images/media_url_premium_baseurl.png "Premium site baseUrl") Free sites: ![Free site baseUrl](https://wixmp-833713b177cebf373f611808.wixmp.com/images/velo-images/media_url_free_baseurl.png "Free site baseUrl") # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Get the base URL of the current page ```javascript import { location } from '@wix/site-location'; // Premium site URL: "https://www.domain.com/elephant?species=african-elephant" // Free site URL: "https://user_name.wixsite.com/zoo/elephant?species=african-elephant" let baseUrl = await location.baseUrl(); // Premium site: "https://domain.com/" // Free site: "https://user_name.wixsite.com/zoo/" ```