add hook before locator redirect