When you create a go “Link back” with a button, the UX is not correct if you add a Modal. If you click the modal and then go back to main page, when you click the go back, it then goes back into the Modal instead of going back to the previous page that a user was before “main page”. This creates an endless loop if user is then pressing “back”.
Ideally, if there is a modal in that page, it should be removed from the “link back” process in the page that, that Modal “lives” in. Thank you.