Skip to content

Remove Redirects if not needed #2500

@geofranzi

Description

@geofranzi
[BExISEntityAuthorize(typeof(Dataset), "id", RightType.Write)]
public ActionResult Start(long id, int version)
{
    return RedirectToAction("load", new { id, version });
}

According to AI, this can create several issues which can explain the current behavior, which is a waiting time for several seconds!

change the redirect into:

 public JsonResult Start(long id, int version)
 {
     // return RedirectToAction("load", new { id, version });
     var jsonResult = Load(id, version );
     return jsonResult;
 }

The seconds of waiting time are gone with the change! ..not working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions