add method/function for build link
use always same method for logout also