userFrameworkBaseURL; //@todo this is not the right way to get the url in d8 $loginURL .= 'user'; if (!empty($destination)) { // append destination so user is returned to form they came from after login $loginURL .= '?destination=' . urlencode($destination); } return $loginURL; } }