calimero-network / admin-dashboard

https://calimero-network.github.io/admin-dashboard/
8 stars 1 forks source link

fix: context details url #10

Closed frdomovic closed 3 weeks ago

frdomovic commented 3 weeks ago

fix: context details url

Summary:

Clicking on context in the context list on the context page would navigate you to broken url that looked like /contexts#contexts/{id] One solution is to use tag with full url path href="/admin-dashboard/contexts/[id]" or use with just to="id"

Used second solution and :this approach leverages React Router's internal mechanisms for handling routing, which can help avoid issues with URL paths and ensure consistent navigation behavior across your application.

https://github.com/calimero-network/admin-dashboard/assets/93442516/3aefe626-f8a7-48bf-a7fb-a68e575a2c22

Passing build:

Screenshot 2024-06-12 at 16 06 10