Fixed issue when searching for an entity would redirect you to the backend login page