Issue with extension behavior on modern route change
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
@mpasarin For the second problem refer to https://github.com/SharePoint/sp-dev-docs/issues/1069.
Perfect, this is what I was looking for, I'll give it a try as soon as possible! What about the first one?
Thanks
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.
#1042 "see all" links from out-of-box web parts seem to cause the same behavior in my projects
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+?
I can confirm that the issue was resolved. Thank you very much!
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