fixes #4656
Merge pull request #4901 from dotCMS/issue-4656-add-container-not-redirecting-to-referer

fixes #4656