1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-08-24 19:49:22 +02:00

Update docusaurus.config.js

This commit is contained in:
Anton Titovets
2025-05-31 14:17:48 +03:00
parent 7215243a5b
commit 1f24296269

View File

@@ -143,11 +143,22 @@ window.yaContextCb.push(() => {
items: [
{
label: 'English',
href: 'https://en.openintegrations.dev' + (typeof window !== 'undefined' ? window.location.pathname : ''),
}
// ... more items
target: '_blank',
rel: 'noopener noreferrer',
href: '#', // Заглушка для SSR
onClick: (e) => {
e.preventDefault();
const currentUrl = new URL(window.location.href);
const newPath = currentUrl.pathname + currentUrl.search;
// Меняем хост на en.openintegrations.dev
const newUrl = new URL(newPath, 'https://en.openintegrations.dev');
window.open(newUrl.toString(), '_blank');
},
},
],
},
}
],
},
footer: {