diff --git a/js/main.js b/js/main.js index 878238b632..1299a5fd43 100644 --- a/js/main.js +++ b/js/main.js @@ -71,6 +71,18 @@ document.addEventListener("DOMContentLoaded", function(event) { }); $(document).ready(function() { + + const queryString = window.location.search; + const urlParams = new URLSearchParams(queryString); + const tag = urlParams.get('news_tags'); + if (tag !== null) { + const collection = document.querySelector('.breadcrumb'); + let activeBreadcrumb = collection.querySelector('.active'); + activeBreadcrumb.removeAttribute("class"); + activeBreadcrumb.removeAttribute("aria-current"); + collection.innerHTML += '