Maybe that Nightly build doesn’t include the fix for that. It’s slated for 5.0.6 production release, but who knows which Nightly/Beta release will have it.
its does include the fix because before it was redirecting to /portal but now its fixed except when you logout/login you will be redirected to /loggedout and thats why its page not found.