deal with URL fragmentation redir