Using the following jQuery script get the current loading URL
Jquery -: var href = jQuery(location).attr(‘href’);
Javascript-: var href = window.location.pathname;
jQuery(document).ready(function() {
setTimeout(function() {
window.location.href = href;
}, 3000); });