1👍
Best way is to update the url
with the unique identifier (UUID) once the item get selected. Now when you refresh the page just identify the item using the (UUID) in url and apply the specific item using active
state. As per the router-view
case you can easily handle it with the url defined case – make /profile:id
expect a parameter, which will only provided when you click any of the router-link
else redirect back to items page with the last selected UUID
to highlight the last selected item
Source:stackexchange.com