Seems that some how register links are broken without this patch.
It redirects /<base_url>/#/register to /register so it dosen't include
the base url.
I have spent alot of time digging into this.
Bug: Issue 6062
Change-Id: I6598799ca041f72b6855ce219201877683890487