This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Issue

You are randomly getting redirected to the wrong URL when clicking on a Task step on a Viewflow.

Symptoms

When clicking on a Task step on a Viewflow, the user expects to be directed to the following URL:
http://[K2 site URL]/Runtime/Runtime/Form.aspx?_Name=com.K2.System.Reports.Form.ActivityInstanceDetail&procinstid=28537&actinstid=13

In some cases which do not work, it goes to:
http://[K2 site URL]/Designer/K2Workflow/undefined/Runtime/Runtime/Form.aspx?_Name=com.K2.System.Reports.Form.ActivityInstanceDetail&procinstid=28537&actinstid=13

As a result, a 404  resource cannot be found is returned:

Image

Resolution

This has been resolved in K2 5.2 Fix Pack 23 which you can install to resolve this issue.