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

Issue with extension behavior on modern route change

Open Saulius-Laurinaitis opened this issue 9 years ago • 7 comments

Hi, The issue I found is on the modern communication site, e.g. https://tenant.sharepoint.com/sites/aa/SitePages/Home.aspx where you click on search, type some search query and go to search results page on the same page, e.g. https://tenant.sharepoint.com/sites/aa/SitePages/Home.aspx/search/sitefiles?q=test&s=https%3A%2F%2Ftenant.sharepoint.com. Extension on that area is hidden and when you click back button on your browser then extension remains hidden. Can you reproduce that as well?

I have also other interesting use case - I'm using extensions for notifications to show some message to the user which is working fine when I do standard redirect to the page and extension is reloaded, but when I click on the link to redirect to other page in the same site then extension remains and only page content is reloaded which is expected with react (modern) routing, but I would like to call my function on each redirect (even on modern routing). Possibly it is not supported on extensions, but would you think to include such a feature in the future release - I mean some kind a function (e.g. onPageRouteChange) which would be only called in extension on modern routing, but extension would remain as is?

Category [ x] Question / Suggestion [ x] Issue

Thanks Saulius

Saulius-Laurinaitis avatar Nov 28 '17 16:11 Saulius-Laurinaitis

@mpasarin For the second problem refer to https://github.com/SharePoint/sp-dev-docs/issues/1069.

GrahamMcMynn avatar Nov 28 '17 19:11 GrahamMcMynn

Perfect, this is what I was looking for, I'll give it a try as soon as possible! What about the first one?

Thanks

Saulius-Laurinaitis avatar Nov 28 '17 20:11 Saulius-Laurinaitis

I've just encountered the same issue when using the modern search experience with any modern site - Team or Communications. The extensions header disappears click the back arrow from search or the back button in the browser. It is restored with a refresh of the page.

maryha avatar Nov 30 '17 14:11 maryha

#1042 "see all" links from out-of-box web parts seem to cause the same behavior in my projects

pdemro avatar Dec 11 '17 15:12 pdemro

Since this issue has been open for a long time with no activity, can you confirm if this is still an issue or possibly resolved by an update in the last 12mo+?

andrewconnell avatar Feb 01 '19 11:02 andrewconnell

I can confirm that the issue was resolved. Thank you very much!

Saulius-Laurinaitis avatar Feb 01 '19 13:02 Saulius-Laurinaitis

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 28 '20 18:01 msft-github-bot