> 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: prefix() # Method package: wixLocationFrontend # Method menu location: wixLocationFrontend --> prefix # Method Link: https://dev.wix.com/docs/velo/apis/wix-location-frontend/prefix.md # Method Description: Gets the prefix of a dynamic page's or router page's URL. Only dynamic pages and router pages have a prefix. The value of the `prefix` property for other page types is always `undefined`. Premium sites: ![Premium site prefix](https://wixmp-833713b177cebf373f611808.wixmp.com/images/velo-images/media_url_premium_prefix.png "Premium site prefix") Free sites: ![Free site prefix](https://wixmp-833713b177cebf373f611808.wixmp.com/images/velo-images/media_url_free_prefix.png "Free site prefix") To learn more about dynamic page prefixes, see [About URL Prefixes and Page Grouping of Dynamic Pages](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/dynamic-pages/making-dynamic-page-urls-meaningful-with-prefixes.md). To learn more about router page prefixes, see [About Routers](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/routers/about-routers.md#url-prefix). # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get the prefix of the current page's URL ```javascript import wixLocationFrontend from 'wix-location-frontend'; // Premium site URL: "https://www.domain.com/mammals/elephant?species=african-elephant#desc" // Free site URL: "https://user_name.wixsite.com/zoo/mammals/elephant?species=african-elephant#desc" let prefix = wixLocationFrontend.prefix; // "mammals" ``` ---