Added redirect to the backend when ?edit query param is present.