const pages = getCurrentPages(); const currentPage = pages[pages.length - 1]; const url = `/${currentPage.route}`;