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.

Objective

When you login from a form, how do you redirect to a specified return URL and not default to runtime?

Before You Begin

The issue is caused by the ReturnUrl set to “ReturnUrl=%2fRuntime%2f”, which is basically the Default runtime site. This is what happens when you just use the logout URL, and specify no ReturnURL

How-to Steps

To fix this, change the logout button URL to:
[BASE_URL]/_trust/logout.aspx?ReturnUrl=/Runtime/Form/[FORM_TO_RETURN_TO]

In this case example it will be: https://k2.denallix.com/Runtime/_trust/logout.aspx?ReturnUrl=/Runtime/Form/TestFormWorklist/