My jQuery code opened this href in new window. I would like to open this href in the same window, but this is not working. (Toggle the side)
jQuery('.dig-pub').on('click', function() {
url = jQuery(this).parent().find('a').attr('href');
// Remove this (opens new window)
window.open(url);
// Use below to open link in the same window
//$(location).attr(url);
});