js: fix pageReload function for urls with hash
Merge pull request #1571 from Zentyal/jgarcia/reload-after-save-changes

Fix pageReload function for urls with hash