question

RonnyLewandowski-0283 avatar image
1 Vote"
RonnyLewandowski-0283 asked sarashahinzadeh-8850 commented

SPFx Single Sign On Redirect Page

We have a simple SPFx Application Customizer which renders a global navigation to all sites. We are using pnp to fetch items from a config list. The component is running fine. Each time we open a new browser-session or add a tab to the browser with a url of the tenant, the page is loading twice. We can see that the title "SPFx Single Sign On Redirect Page" is rendered on the tab when the page loads the second time.

79150-spfx.png


What is causing the reload then? This occures on a development tenant, logged-in in private mode.

office-sharepoint-online
spfx.png (1.8 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We are also facing same issue. does anyone has resolved it? We are calling api using AadhttpClient in spfx webpart so first time it reload the page and after works fine.
It was working fine earlier.

0 Votes 0 ·

Hi,
Have you found any solution how to fix it or figured out why it happened ?
We are facing same problem now.

0 Votes 0 ·

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered LewandowskiRonny-3733 commented

Hi @RonnyLewandowski-0283,

In your spfx project, could it be that you call the function loaction.reload() to reload the page?

Besides, you could click F12 to open browser developer tools and select network tab, check the requests.


If an Answer is helpful, please click "Accept Answer" and upvote it.
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.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Michael,

thank you for your quick response.
Not I am not reloading the page. This must be pnp or just SharePoint.
From the network tab, I found some entries with requests and referrer to /_forms/spfxsinglesignon.aspx

 {
       "name": "referer",
       "value": "https://xxx.sharepoint.com/_forms/spfxsinglesignon.aspx"
 }


Regards, Ronny


0 Votes 0 ·

Additional findings:

This happens only on sub webs

0 Votes 0 ·

Additional findings: This does not occur, if we navigate from websitecontent to the sub-web (which also is adding a new tab to the browser)

0 Votes 0 ·