Hello Cheng
From your part we tried to use view-last view-home but it's rapidly a
nightmare when you component grow.
So if you detect a potential improvement on it don't hesitate to share
it on jira.
After some feedback, call-back and json call are more power full for the
navigation.
Regards,
Nicolas
Le 14/04/2025 à 12:07, Cheng Hu Shan a écrit :
Hi Ofbiz community,
I have a question about the intended behaviour of request responses
"view-home" and "view-last". As one can see in
RequestHandler::doRequest if you want to use the controller request
"view-last", but already have a "_HOME_VIEW_NAME" session attribute in
place, this method will always prioritise the home view over the last
view. This renders "view-last" practically unusable as there is no
common logic to remove "_HOME_VIEW_NAME" from the session.
Can someone shed some light onto why this would work this way or some
usecases? I'm inclined to delete that else-if-branch for my project,
but I'm not sure about collaterals.
Thanks in advance
Best regards