fix bad redirect url after successful login (if MediaCore is mounted in a subdirectory)