> 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: siteSite.currentPage() # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/site/current-page.md # Method Description: Retrieves information about a current page or popup. # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Get information about the current page ```javascript import { site } from '@wix/site-site'; // ... const currentPage = await site.currentPage(); /* Promise resolves to: * { * "name": "Home", * "type": "static", * "url": "/home", * "isHomePage": true * } */ ``` ## Get information about the current popup (lightbox) ```javascript import { site } from '@wix/site-site'; // ... const currentLightbox = await site.currentPage(); /* Promise resolves to: * { * "name": "Welcome (Full Screen)" * "type": "lightbox" * } */ ```