How to redirect user to Organization Form Login page after a logout ?
I'm posting this because it may help others.
When you are using an Organization Login Form page, after logout, you may want the user to be redirected to this.
Form Login URL is like:
http://host:port/Thingworx/FormLogin/MyOrg
where MyOrg is your organization name.
In TWX 8.5, logout function proposes you to redirect to:
- a Mashup
- a URL
As Form Login is not a Mashup, you can use the second option (URL). But then, you have to rebuild the URL from composer...
You can do this using an expression that will return:
result = window.location.protocol + "//" + window.location.host + "/Thingworx/FormLogin/MyOrg";
And you bind your expression like this:

assuming here that the button is the logout user action.

