Browser navigation in a view does not work when using wbRouterLink with default target (self)
k-genov opened this issue · 0 comments
Describe the bug
When using the wbRouterLink directive with default configuration (wbRouterLinkExtras with target self) the view being replaced remains blank (empty) if e.g. browser back navigation is used after clicking on the link
To Reproduce
Steps to reproduce the behavior:
- Create empty angular app
- Create a standalone home component (e.g. desktop) with a route navigation (e.g.
<a wbRouterLink="/customers">Customers</a>
). When clicked this will open (view.1:customers) - Create another standalone home component (the customers) (
<a [wbRouterLink]="['/customers', 1]">first lastname</a>
). When clicked this will replace the content of view with (view.1:customers/1) - Create the third standalone component customer.
- When on the customer detail page click browser back - view remains empty with url (view.1:customers). Click again on browser forward. The view is still empty.
Expected behavior
Browser navigation should work when view content is replaced.
Screenshots
If applicable, add screenshots to help explain your problem.
http://localhost:4200/#/(view.1:customers)?parts=eyJyb290Ijp7InZpZXdJZHMiOlsidmlldy4xIl0sInBhcnRJZCI6Ijk4ODVlNWZjLTA2YTAtNDVkNi04MGFiLTBkMmQwZmIzYWY1NyIsImFjdGl2ZVZpZXdJZCI6InZpZXcuMSJ9LCJhY3RpdmVQYXJ0SWQiOiI5ODg1ZTVmYy0wNmEwLTQ1ZDYtODBhYi0wZDJkMGZiM2FmNTciLCJ1dWlkIjoiNmJjOGU0ZmUtNDExYS00OTM3LTlmNDYtNGMwNDhkODg4YWYyIn0%3D
Environment
Please complete the following information:
- SCION Workbench version: 14.0.0-beta.9
- SCION Workbench Client version: 1.0.0-beta.16
- Angular version: 14.2.0
- Browser: Edge 109.0.1518.70
- OS: Windows 10
- Device: [e.g. Desktop, Smartphone]
Additional context
Add any other context about the problem here.