pnp / custom-learning-office-365

Microsoft Learning Pathways end user learning solution for Microsoft 365 customers.
MIT License
235 stars 209 forks source link

"Top of page" link is not working, do not jump to top section in page. #534

Closed SandeshGawdeLSEG closed 3 months ago

SandeshGawdeLSEG commented 3 years ago

PROVISIONING NOTE: If you are having issues with the SharePoint look book while trying to provision M365 learning pathways please do not post that issue to this repo as we cannot help you here. Please post all questions and issues for the SharePoint look book to SharePoint/sp-provisioning-service GitHub Issues List.

WEB PART NOT LOADING: If you are getting the error: "Microsoft 365 learning pathways has a configuration issue. Ask your administrator for assistance". Please review the Diagnosing Pre-Check guidance before submitting your bug.

Describe the bug

"Top of page" link on learning pathway webpart page is not working. It does not jump to top section in page.

To Reproduce

Go to Learning pathway webpart then > Excel > Formatting > Display or hide zero values > Office 2010 > click on "Top of Page" link.

Expected behavior

After clicking on Top of Page link, focus should go to top of particular section. This functionality works well in original Microsoft article page.

Screenshots

TopOfPageError

Learning Pathways version number

4.1.4.0

Additional context

Add any other context about the problem here.

jellis-thrive commented 3 years ago

Hello @SandeshGawdeLSEG

We will work to reproduce this in an unchanged Learning Pathways installation and let you know if we experience the same.

juliemturner commented 3 years ago

@SandeshGawdeLSEG - Anchor tags which is how that "top of page" link works do not reliably work within an iFrame because the content is cross domain. Unfortunately, becuase this is an issue with the support.office.com page itself and how it behaves inside an iFrame there isn't anything we can do within the webpart to mitigate the situation. I have tagged this for the content team.

SandeshGawdeLSEG commented 3 years ago

@juliemturner Thank you for your reply. However, Back to Top works fine on original Microsoft article page https://support.microsoft.com/en-us/office/display-or-hide-zero-values-3ec7a433-46b8-4516-8085-a00e9e476b03#top

juliemturner commented 3 years ago

@SandeshGawdeLSEG - I understand that, but this content is hosted in an iFrame. Anchor tags notoriously do not work or only work sometimes and depends greatly on how they're implemented when content is hosted in an iFrame. This is a browser limitation not a programmatic one with the web part. Potentially the anchor links could be implemented differently by support.office.com to find a technical work around but we have not ability to make that happen.

dcashpeterson commented 3 months ago

Closed as inactive and not fixable.

github-actions[bot] commented 2 months ago

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.