[FEATURE query-params] Fix history location

Fixes #3438