cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation back in FLP

jklimes
Explorer

Hello everyone,

I found problem with navigation in FLP. I create new Draft and Navigate to it so my Hash is like /detail/asdasf5549asd/. I cancel the draft without saving and return back to Main Screen(List). Draft is destroyed, then i press FLP Standard shell button NavBack and It is navigated to the hash of previous Detail /detail/asdasf5549asd/ (Problem is that this detail no longer exist on backend so the error message is returned). Is there any possibility to fix this?

Accepted Solutions (0)

Answers (1)

Answers (1)

rohit_singhal
Active Contributor
0 Kudos

Hi Jan,

You could write a condition for the NavBack fragment in your controller.

If there is no element found for path: history-1, then navigate to path: history-2

Regards,

Rohit

jklimes
Explorer
0 Kudos

Well there is no problem with my function. I have problem with NavBack button in FLP the one that is here as basic back button. And i dont know if there is possibility to overwrite the function just for one app.
Regards.
Klimeš