"""Redirect from url param."""
        return redirect(url_for("Airflow.code", **sanitize_args(request.args)))
    @expose("/dags/<string:dag_id>/code")
    @auth.has_access(
        [
            (permissions.ACTION_CAN_READ, permissions.RESOURCE_DAG),
            (permissions.ACTION_CAN_READ, permissions.RESOURCE_DAG_CODE),
        ]
    )
    @provide_session
    def code(self, dag_id, session: Session = NEW_SESSION):