Problem with locale accessing bonita forms by url
I am trying to access to bonita using this url: http://localhost:8080/bonita/loginservice?username=xxx&password=xxx&redi...$entry&process=ID_MY_PROCESS&mode=form&locale=fr
But the language of the form is english. Bonita generates this url on the redirect: http://localhost:8080/bonita/portal/homepage?ui=form&ui=form#form=MY_FORM$entry&process=ID_MY_PROCESS&mode=form&locale=fr
With the same code above, I put the locale (&locale=fr) before # and it works, but I need to use the first url...
It seems that the attribute locale is never used if you put it after #
I am using the community edition.
But in the documentation of 6.3.0 says that you should put the parameter there: http://documentation.bonitasoft.com/accessing-bonita-bpm-portal-and-form...
This is the example in the documentation: http://localhost:8080/bonita/?ui=form&autologin=Pool6--1.0#form=Pool6--1.0$entry&process=6972973247608922361&mode=form&locale=fr
I use this: http://localhost:8080/bonita?ui=form&autologin=XXX#form=YYY$entry&process=ZZZ&mode=form&locale=fr
And it doesn't work.
I use this: http://localhost:8080/bonita?ui=form&autologin=XXX&locale=fr#form=YYY$entry&process=ZZZ&mode=form
Everything goes fine.
I think the documentation has a mistake or something like that.
The "#" in the URL is seen as an anchor. Anchor are specific tags in the URL such as "&" , "=" , "?", .... http://www.w3.org/TR/html4/struct/links.html#h-12.2.3
So you cannot add the locale=fr after the #.
Hopefully it helps. Best regards, LL
I solved it.
You have to put after ?ui=form the ?locale=fr, whith the ? before the parameter.
This is not explained in the bonita documentation, I think this is not serious. You have three kinds of URLS in the documentation in v6.X and any of them works for 6.3.0.
- You can connect to Bonita BPM Portal from other tools using a URL of the form http://host:port/bonita#?..... Other forms of URL are liable to change in future versions. For example, use http://localhost:8081/bonita#?process=myProcessId&locale=fr, and do not use http://localhost:8081/bonita/console/homepage#?process=myProcessId&locale=fr