Let's say that n-pages of application contains a link to page A
.
But that link actually placed in the template part of that n-pages.
Note that the page A
also contains that template part. So that link is present in the page A
too.
The idea is to hide the link to page A
when the transition was happened from any other n-pages to page A
. I.e. when we are on any of the n-pages then that link is present but is we are an the page A
then that link is hidden.
How can I achieve that with a little effort?