Skip to content

Synchronize URL Hash with Active Section #27

@bae080311

Description

@bae080311

Summary

Automatically update the browser's URL hash to reflect the currently active section, enabling deep linking, bookmarking, and improved shareability for specific page content.

Proposed Solution

Implement a mechanism using history.pushState or history.replaceState to update the URL hash without a full page reload when a section enters the viewport. Support initial page load and scroll based on a provided hash.

Acceptance Criteria

  • URL hash updates to /#section-id when a section becomes active.
  • Navigating to a URL with /#section-id scrolls to that section on load.
  • Option to enable/disable this auto-hash synchronization.

🤖 Gemini AI가 자동 생성한 기획 이슈입니다. 구현하려면 ai-implement 라벨을 추가하세요.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions