Closed PragmaticEd closed 6 years ago
You need to use the instance-level add_breadcrumb
, otherwise the value is cached at class level.
I encourage you to use https://stackoverflow.com/ for support.
So, basically, repeat ur self in each action of each controller..
Use a before action.
Is it solved? How to solve it?
If using provided example:
And we go to
/admin/users?locale=en
it loads perfectly:
Admin / Users
But if we switch language and refresh the page:
/admin/users?locale=lv
I get
Admin / Lietotāji
, when it should beAdministrācija / Lietotāji
, meaning, it only translates the last item.To get the all breadcrumbs to update, u have to go to first link, admin_path in this case, and then click to the last one, admin_users_path, in this example.
Any ideas how to fix this?