diff --git a/web/static/assets/js/app.min.js b/web/static/assets/js/app.min.js index d7719723a..30ceffaea 100644 --- a/web/static/assets/js/app.min.js +++ b/web/static/assets/js/app.min.js @@ -493,4 +493,3 @@ })(), Waves.init(), feather.replace(); -//# sourceMappingURL=app.min.js.map diff --git a/web/static/custom/custom.js b/web/static/custom/custom.js index 55733f309..d26eb5d28 100644 --- a/web/static/custom/custom.js +++ b/web/static/custom/custom.js @@ -3257,3 +3257,17 @@ function convertToCamelCase(inputString) { return camelCaseString; } +function handleHashInUrl(){ + // this function handles hash in url used to tab navigation + const hash = window.location.hash; + if (hash) { + const targetId = hash.substring(1); + const tabLink = $(`a[href="#${targetId}"][data-bs-toggle="tab"]`); + if (tabLink.length) { + tabLink.tab('show'); + setTimeout(() => { + tabLink.click(); + }, 100); + } + } +} \ No newline at end of file diff --git a/web/templates/base/base.html b/web/templates/base/base.html index 1bcb55d86..92b85f1ca 100644 --- a/web/templates/base/base.html +++ b/web/templates/base/base.html @@ -109,6 +109,14 @@

{% block page_title %}{% endblock page_title %}