spacemeshos / explorer-frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't highlight links if it's destination is the same as current page

kacpersaw opened this issue · comments

Issue Summary

In the current implementation, links on the page remain highlighted (or contain the link style) even when the user is already on the target page. This can be confusing, particularly when the same link is clicked multiple times, leading to the assumption that it leads somewhere else.

Example

An example of this issue can be seen on this page. Here, attempting to follow the 'FROM' leads to the same page the user is already viewing.

Expected Behavior

Ideally, the link should not be highlighted or appear as a clickable link when the user is on the same page that the link points to. This will prevent confusion and improve user experience by making it clear that the user is already on the target page.

commented

description updated, If it will be hard to resolve, it is possible to make the link visited ( purple color ). But I hope it is possible to detect the current page and remove it.