How to stop auto-redirects when accessing to the site URL

tebu 1 Reputation point
2022-02-09T02:23:41.293+00:00

I have a site in Sharepoint Online. When I access to the site URL:<siteurl>, some redirects happens as blow and the URL is changed to <siteurl>/SitePages/Home.aspx automatically.

<siteurl>
--> <siteurl>?sw=auth
--> <siteurl>/SitePages/Home.aspx?sw=bypass
--> <siteurl>/SitePages/Home.aspx

I am not sure if this is related but the site is set as a hub site.
I think it takes some extra time to complete the loading due to the redirects. I would like to stop the redirects.
Could someone tell me what I should do for this.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yi Lu_MSFT 17,616 Reputation points
    2022-02-09T07:57:33.923+00:00

    Hi @tebu
    Is this site a classic site? Or have you set another page as the homepage of this site?

    Per my test, in this case it will redirect to <siteurl>/SitePages/Home.aspx automatically. This is by default, so there is no ootb method to prevent this redirection.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.