strip off trailing hash from window location