Problem logging out in NG Client

Hi,

When I click the logout button in the standard framework panel in the Web Client it logs me out of the application and returns the browser to the Login for from the login solution. However if I do the same thing in the NG client I am getting a blank (sepia coloured) screen and the address bar has the following:

http://localhost:8080/solutions/TMLE/index.html?f=AbstractPropertyDef

Even if I then remove the query parameter and try to reload the solution I am always redirected to the same link and no login screen appears. Can anyone explain what is happening and how I can rectify it please?

Thanks
Steve

Hi Steve,

In the webclient you have to tell the browser if you want to return to the login page, be redirecting the browser:

application.showURL(application.getServerURL()+'/servoy-webclient/ss/s/mySolution','_self');

I would guess that you would have to do something similar in the NG client.

Hi Jos,

I am simply using the standard framework logout function in svy_nav_frm_main_base.js to logout. This calls the security.logout(“solutionName”) method which should then redirect to the correct URL automatically (I am testing on the developer currently so localhost is correct) but it is the ?f=AbstractPropertyDef at the end of the URL that seems wrong.

The problem is even if I remove this query parameter manually in the browser window and then type the correct URL (http://localhost:8080/solutions/TMLE/index.html) to start the application again the browser immediately redirects to the URL with query parameter at the end so this seems to be some kind of session related issue. If I close the browser, reopen it and type http://localhost:8080/solutions/TMLE/index.html then everything works as expected :?

Any other ideas?

Thanks
Steve

Hi Jos,

Just went to log it as a bug in Jira and discovered the following: Calling security.logout() will log out, but not redirect to login which was logged a couple of days ago - Doh!

Thanks
Steve