click a link (navigate to another page with turbo)
use browser's back button - there are two navs on a page now
go back to step 2. to see more navs
Problem didn't exist in version 4.11, because the content of the nav element was emptied here.
This was removed in 5.0.0.
Is this change intentional? If that's the case, maybe there should be some information in the docs about the need of empty the nav element manually using turbo:before-cache event?
Prerequisites:
hotwired/turbo
/turbolinks
_js
navSteps to reproduce the problem:
turbo
)back
button - there are two navs on a page nowProblem didn't exist in version
4.11
, because the content of thenav
element was emptied here. This was removed in5.0.0
.Is this change intentional? If that's the case, maybe there should be some information in the docs about the need of empty the
nav
element manually usingturbo:before-cache
event?