I'm creating an event page that has a map with pins that you can click to view events. When you click a pin, a modal opens that shows all the information about the event, including the address which links out to either a new browser tab or the device's default map app. There is also confirm attendance and add to calendar.
When you choose anything that would take you outside of our website, we are legally required to show a modal telling the user that they are leaving our website.
My question is, would it be the best practice:
to overlay the leaving modal over the modal that shows info about the event when you've clicked on a pin?
Or should the event info modal close once you've clicked something that would cause the leaving modal to pop up? The only downside to this is they would have to remember what event they've chosen on the map if they choose not to navigate away from our site.