Anchor links to nested fields in API reference pages don't scroll on page load #4163
jjjjw
started this conversation in
Bugs & Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Anchor/hash links to top-level request body objects in auto-generated API reference pages work correctly, but links to nested fields within those objects do not scroll to the target on page load.
Expected behavior
Navigating to a URL with a hash link to a nested field (e.g., #body-object-property) should scroll the page to that field on load.
Actual behavior
This likely happens because nested fields are collapsed by default, so the anchor target element doesn't exist in the DOM when the browser attempts to scroll to it.
Reproduction
Beta Was this translation helpful? Give feedback.
All reactions