fix public link share if a user is logged in