1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-23 22:05:15 +02:00

Update docusaurus.config.js

This commit is contained in:
Anton Titovets
2025-05-31 15:20:37 +03:00
parent 1f24296269
commit e3e3e9b0f1

View File

@@ -143,22 +143,11 @@ window.yaContextCb.push(() => {
items: [
{
label: 'English',
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');
},
},
href: 'https://en.openintegrations.dev',
}
// ... more items
],
}
},
],
},
footer: {