Apologies - I did search google but I'm not sure
How do I change the url of a button depending on which page it's currently on?
I have a sticky header with anchors on some pages I need something onClick that says
:if you're on "" page use this URL else use this URL
I have situations where it will reload the page instead of just scrolling to the anchor, but I need some cross site navigation.
Sorry this isn't explained very well Martyn