Button inside popup. Click on test button popup-close working but cannot open page

Hi, i had create a Test button to close the popup and open a new page seem like not working. Do anyone know how to solve this problem? Thanks.

Html - Popup
< a href="/test/" class="button button-fill color-gray text-color-white popup-close "> TEST < / a >

< script >
routes = [
path: ‘/’,
url: ‘./i.html’,
} ,
path: ‘/test/’,
url: ‘./pages/test.html’,

Нужно обработать событие закрытия popup и оттуда открыть страницу

Thanks Problem solve