Found a solution using JS. Ref: http://stackoverflow.com/questions/1397329/how-to-remove-the-hash-from-window-location-with-javascript-without-page-refresh
// Remove # sign after facebook login
if ( (location.hash == "#_=_" || location.href.slice(-1) == "#_=_") ) {
removeHash();
}
function removeHash() {
var scrollV, scrollH, loc = window.location;
if ('replaceState' in history) {
history.replaceState('', document.title, loc.pathname + loc.search);
} else {
// Prevent scrolling by storing the page's current scroll offset
scrollV = document.body.scrollTop;
scrollH = document.body.scrollLeft;
loc.hash = '';
// Restore the scroll offset, should be flicker free
document.body.scrollTop = scrollV;
document.body.scrollLeft = scrollH;
}
}
if you use this below code also it does same
parent.location.hash = '';
But it's (your code ) not removing the '#' from url . Any idea how to remove the # character from url ?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community