Fix history.navigate: Add params to path before comparing with current path