I am looking for a solution to navigate to MySite from "main" site without using a hard coded link. Also I want the same when going back to main site.
The solution is going from development to test and then to prod, so I need a way that it gets the URL and sets it as "href". The ribbon wont be shown for the end-user so I can't use this.
PS: I don't have time for using a C# solution. Prefer Javascript etc.