BUG Reapply fix for cms crashing due to History.js blindly appending slashes to end of url
Merge pull request #3391 from tractorcow/pulls/3.1/fix-history-js

BUG Reapply fix for cms crashing due to History.js blindly appending slashes to end of url