> 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: currentPage() # Method package: wixSiteFrontend # Method menu location: wixSiteFrontend --> currentPage # Method Link: https://dev.wix.com/docs/velo/apis/wix-site-frontend/current-page.md # Method Description: Retrieves information about a current page or popup. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get information about the current page ```javascript import wixSiteFrontend from 'wix-site-frontend'; // ... const currentPage = wixSiteFrontend.currentPage; /* * { * "name": "Home", * "type": "static", * "url": "/home", * "isHomePage": true * } */ ``` ## Get information about the current popup ```javascript import wixSiteFrontend from 'wix-site-frontend'; // ... const currentLightbox = wixSiteFrontend.currentPage; /* * { * "name": "Welcome (Full Screen)" * "type": "lightbox" * } */ ``` ---