diff --git a/src/js/adstoscix.js b/src/js/adstoscix.js index 40b69d711..fd6d7d3b4 100644 --- a/src/js/adstoscix.js +++ b/src/js/adstoscix.js @@ -82,6 +82,15 @@ const css = ` const currentUrl = window.location.href; let correspondingUrl = currentUrl.replace(window.location.host, 'scixplorer.org'); const pathname = window.location.pathname; + + // landing page, default to astrophysics discipline + if (pathname === '/') { + const index = correspondingUrl.lastIndexOf('/'); + correspondingUrl = correspondingUrl.slice(0, index) + '/astrophysics'; + window.open(correspondingUrl, '_blank'); + return; + } + let newpath = window.location.pathname; if (pathname.match(/\/export-([a-zA-Z]+)$/)) { // this check must come before /search/ diff --git a/src/js/widgets/navbar/template/navbar.html b/src/js/widgets/navbar/template/navbar.html index 8d4241191..c34bcd6dd 100644 --- a/src/js/widgets/navbar/template/navbar.html +++ b/src/js/widgets/navbar/template/navbar.html @@ -21,7 +21,7 @@

ads