Redirect to current file only if filename in history