
After loading the modal when i refresh the page the component is open in a page rather than a modal.
at this moment when i refresh the page twice and go back using the back arrow of browser the component is shown inside the modal as well as in the background page.