Router.back(); for pages inside left or right panel?

is there a router.back(); function to close pages opened inside the right or left panel on backdrop-click?

$(’.panel-right’).on(‘panel:backdrop-click’, function () {

…??

});

router.back(); close the page in the main view… not inside a panel

I tried also

router.back(’/page-in-right-panel/’, {force: true, ignoreCache: true});

does not work either for panels…

any ideas?

You need to reference router in left panel

how will you reference the router in left or right panel in this case? I tried many things and always refresh the main view…

thanks

Depends on your layout, you must have left panel view, so it should be like leftPanelView.router.back()

1 Like

thanks! testing it now!!