Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add anchor scrolling / fragment navigation for serverHtml content #80

Merged
merged 1 commit into from
Jan 17, 2020

Conversation

shauke
Copy link
Collaborator

@shauke shauke commented Jan 14, 2020

What Is the Current Behavior?

Anchor scrolling / fragment navigation on a pages with content fetched via ICM CMS REST API doesn't work as expected. The ishServerHtml directive does not handle such links with only the a given anchor correctly, but will reload the application to a wrong route instead of scrolling on the current page. Complete routes with fragment navigation work as expected.

Such links do not work:
<a href="#Software" title="Software">Software</a>

These links would work:
<a href="page://systempage.termsAndConditions.pagelet2-Page#OtherDocuments" title="OtherDocuments">Other Documents</a>

This can be tested with the "Terms & Conditions" ICM demo content.

What Is the New Behavior?

The ishServerHtml directive handles links like <a href="#Software" as anchor links and scrolls on the current page to the according anchor.

Does this PR Introduce a Breaking Change?

[x] No

@shauke shauke added the enhancement Enhancement to an existing feature label Jan 14, 2020
@shauke shauke added this to the 0.17 milestone Jan 14, 2020
shauke added a commit that referenced this pull request Jan 14, 2020
@shauke shauke force-pushed the feature/anchor_scrolling_for_serverHtml branch from 3a4e6ea to e95278d Compare January 14, 2020 09:34
@shauke shauke self-assigned this Jan 14, 2020
@shauke shauke force-pushed the feature/anchor_scrolling_for_serverHtml branch from e95278d to b067b37 Compare January 17, 2020 15:19
@shauke shauke merged commit ccf461c into develop Jan 17, 2020
@shauke shauke deleted the feature/anchor_scrolling_for_serverHtml branch January 17, 2020 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants