In a SharePoint Online modern library you get a preview page with clicking on a PDF file. This is a very cool feature so far. But the moment you click on the X to close this online viewer, you always get back to the original document library.
You were on a custom site with library webpart? > Original document library.
You were on a search result page? > Original document library.
How can I deactivate this - or in other words, how can I define a custom backlink/parent?
I already tried manually changing the ?parent= parameter to the search result page, but this only throws an "UnableToDetermineInitialItem" error.
Thanks and kind regards!