Fix search URL and History API

Closes #115