Is it possible to do a page level url redirection like window.location.replace in sharepoint online modern site. I want to set this up for a specific library default url.
Thanks in advance
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Do you mean you want to add a page redirection in a modern page? To inserting Java script, you will need to use 3rd party tools like modern script editor. And if you want to set the redirection in a specific library, just switch to classic experience and add a script editor for a redirect like below