[BUG] Fixing incorrect 'Next' links, as well as broken SSO page