Skip to content

View content cleared when reopening app in same browser tab #659

@danielwiehl

Description

@danielwiehl

Describe the bug

The content of path-based peripheral views is cleared when reopening the app in the same browser tab, e.g., via a browser bookmark.

This only happens if hash-bashed routing is enabled: provideRouter(routes, withHashLocation()).

To Reproduce

Steps to reproduce the behavior:

  1. Bookmark the application with the trailing hash (e.g., http://localhost:4200/#/)
  2. Click the browser bookmark
  3. Open a path-based view in the peripheral area
  4. Click the browser bookmark to reload the application
  5. See that the view content is cleared

Expected behavior

View content is not cleared, and the outlets in the URL are restored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions