History API and URL parser