Fixed wrong redirects when using a non-default admin port