I have a list page , i don’t want meet cache & scroll position issue , so i use modal to show my detail page.
but every page (include detail page) have a cart button , if click this button will go to cart page .
if i open the modal and go to the cart ， i can’t go back .
how to solve this issue ? Is my method correct ?