sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Doubled application customizer displayed

Open MaartenSundman opened this issue 7 years ago • 12 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

I expect to see my application customizer displayed once on the page when going to another site collection.

Observed Behavior

Starting mid-day yesterday we started getting user reports that when clicking on links to another site collection. The header and footer of the site are duplicated. Our header and footer are provided by an application customizer. A refresh gets rid of the duplication, and it appears to be caused by a change in how the partial-refresh occurs when going around the site.

Steps to Reproduce

  • Create two site collections
  • Enable a branding application customizer on both
  • Add a link to the other site collection on a page in the first site
  • Click the link
  • Note the elements inside of the Top and Footer placeholder have both the original displayed content from Site 1 and the content for Site 2

Additional Notes

This can be avoided by having the link do a window.location.href to the new url. But thats a bandaid. The application customizer is built on SPFX 1.4.1

Thanks for your contribution! Sharing is caring.

MaartenSundman avatar Mar 14 '19 18:03 MaartenSundman

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Mar 14 '19 18:03 msft-github-bot

dom-doubled doubled

MaartenSundman avatar Mar 14 '19 18:03 MaartenSundman

Is this still happening or did it got fixed automatically? Please confirm that status. Sorry for the delay on following up with the issue.

VesaJuvonen avatar Apr 16 '19 16:04 VesaJuvonen

Yes, it is still happening, seems to be related to partial page loads. Triggering a full page load from the initial site to the new one prevents the issue from occurring. That, of course, is not a desirable or sustainable path.

For the time being, I have added styling that hides the second instance which at least hides the behavior to end users.

MaartenSundman avatar Apr 16 '19 17:04 MaartenSundman

As we cannot repro this on our side, any change you could share your solution for us to repro the issue? Would help on moving forward on the troubleshooting. You could use for example MS Tech Community for sending the sppkg file in safe ways only for me.

VesaJuvonen avatar Apr 30 '19 16:04 VesaJuvonen

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.

msft-github-bot avatar May 07 '19 17:05 msft-github-bot

Here you go, just got back from vacation :)

spfx-branding.zip

MaartenSundman avatar May 13 '19 20:05 MaartenSundman

Thanks @MaartenSundman, sorry for the small delay. We'll use this for reproducing the issue and get back to this. Thx.

VesaJuvonen avatar May 16 '19 17:05 VesaJuvonen

@MaartenSundman - Thanks for uploading your package. That being said I'm still not able to repro the issue, and there I am having trouble fixing it.

Let me know where I went wrong:

  1. Create a new 2 new site collections (team1 and team2)
  2. Add your app to the app catalog (tenant deployed)
  3. Go to team1, add the custom action to the web
  4. Go to team2, add the custom action to the web
  5. In team 2 create a link in the left nav to link to team1
  6. Click the click the link

According to you in step 6 i should get duplicate headers/footers. The thing is, I don't.

Thanks, Graham

GrahamMcMynn avatar May 22 '19 19:05 GrahamMcMynn

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.

msft-github-bot avatar May 29 '19 20:05 msft-github-bot

Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.

msft-github-bot avatar Jun 05 '19 21:06 msft-github-bot

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 25 '20 00:01 msft-github-bot