Fix typos. Improve getSelfRoutedURLNoQuery method and use it at Auth