Remove trailing hash routes from AppWeb url when obtained from query string