<div class="breadcrumbs">
<a href="http://domain.com/dev/topics/pagename" class="category">Test</a>
</div>
I have the above domain and which is I would like to remove the topics/
part, I have tried the below piece of javascript but it always returns the url from the above example.
var breadcrumbURL = jQuery('.breadcrumbs .category').attr('href');
breadcrumbURL.replace("topics/", "");
console.log(breadcrumbURL);
jQuery('.breadcrumbs .category').attr('href',breadcrumbURL);