Skip to content

DaveSlinn/structurizr-refresh-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Structurizr Documentation Refresh Issue

This repository demonstrates a bug in Structurizr where refreshing the browser on a documentation page that has navigated to a section header does not work correctly. The URL fragment (anchor) is lost or the page fails to scroll to the expected section after a refresh.

Steps to Reproduce

  1. Start the containers:

    docker compose up -d
    
  2. Open the Structurizr UI at http://localhost:8080.

  3. Navigate to the Documentation section and open any document (e.g. Solution Architecture).

  4. Click on a section header within the document so the URL updates with a fragment/anchor (e.g. #some-heading).

  5. Refresh the page (F5 or Ctrl+R).

  6. Expected: The page reloads and scrolls to the section header indicated by the URL fragment.

  7. Actual: The page does not scroll to the section header; the anchor in the URL is ignored after refresh.

Screen Recording

screen_recording.mp4

Project Structure

Path Description
workspace.dsl Structurizr DSL workspace defining three example systems, their containers, relationships, and diagram views
workspace.json Compiled workspace JSON
docker-compose.yml Docker Compose file that runs the Structurizr preview server (port 8080) and a Mermaid renderer (port 3000)
docs/ Markdown documentation sections (business context, architecture, requirements, etc.) included via !docs
adrs/ Architecture Decision Records included via !adrs

Prerequisites

  • Docker and Docker Compose

Environment

  • Structurizr image: structurizr/structurizr:preview
  • Mermaid image: ghcr.io/jihchi/mermaid.ink

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages