Problem with locale accessing bonita forms by url
Hi,
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.
Any ideas?
regards,
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.
Ola eduardo,
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
Comments
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.
http://localhost:8080/bonita?ui=form&locale=en#form=Task%20link%20via%20email--1.0--Task$entry&mode=app&task=82
http://localhost:8080/bonita?ui=form&autologin=Pool6--1.0#form=Pool6--1.0$entry&process=6972973247608922361&mode=app&locale=fr
Regards
Thanks for your feedback and resolution.
I have contacted the Doc Department to update the online documentation.
Best regards, LL