Breadcrumbs are not cleared when using browser's back button
Go to categories portlet and start navigating to parent->children categories, and go back using the browser's back button. Breadcrumbs are not cleared
PR: https://github.com/dotCMS/core/pull/12130
The crumbtrails work, even though there is a different issue we still have to fix with applying categories and making sure the cat-search crumbtrails work when adding content with nested categories.... but separate task (#12127), so passing this one.
After revision of the issue I found a weird behavior.
Steps to reproduce:
- Create a new category: Test
- Go into Test and create a new Category: Test2
- Go into Test2 and create a new Category: Test3
- Use the breadcrums to go to the Top Level
- Click on Test, then Test2 and finally Test3
- Use breadcrums to go to the Top Level again
- Hit Back on the Browser. The breadcrums lose the reference (see image)
Expected result:
The breadcrums should show:
Top Level > Test > Test2 > Test3

Passed QA. Followed steps to reproduce with new categories and old categories. The breadcrums are not losing the reference, so issue is fixed Tested again original issue and it's working. Breadcrumbs are cleared appropriately
Tested locally using the following environments: Upgrade from dotcms_3.6 with client dataset (db and assets) to master branch / commit f49bdf82745833681f4d0a5e4a554dcd33d5f130 Ubuntu 14.04.1 / Postgres 9.3.7 / Chrome v54.0.2840.98 / Tomcat 8 / Java 8