Update login return url since we no longer always have a permalink.