Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/js/adstoscix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion src/js/widgets/navbar/template/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1 style="font-weight: bold;">ads</h1>
<ul class="dropdown-menu" role="menu">
<li class="no-hover-style" style="padding:15px 10px;">SciX is the evolution of ADS, bringing its powerful capabilities into new domains. SciX will become the sole interface in late 2026.</li>
<li>
<a href="https://scixplorer.org" target="_blank" rel="noopener">
<a href="https://scixplorer.org/astrophysics" target="_blank" rel="noopener">
<i class="fa fa-globe" aria-hidden="true"></i> Visit SciX
</a>
</li>
Expand Down
Loading