Add support for page anchors on page load when using code components

Created on 9 May 2025, 4 days ago

Overview

Currently, code components do not properly work with URLs with hash fragments (e.g., https://example.com/page#section-id). When a user accesses a page with an anchor in the URL, the page loads but does not automatically scroll to the specified element.

Proposed resolution

Implement support for hash-based navigation on page load. When a page loads with a hash fragment in the URL:

  1. Parse the URL to extract the hash fragment
  2. Wait for the page to fully render
  3. Locate the element with the matching ID
  4. Smoothly scroll the viewport to that element

User interface changes

Feature request
Status

Active

Version

0.0

Component

Page builder

Created by

🇫🇮Finland lauriii Finland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024