You've already forked OpenIntegrations
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:
19
docs/docusaurus/docusaurus.config.js
vendored
19
docs/docusaurus/docusaurus.config.js
vendored
@@ -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: {
|
||||
|
Reference in New Issue
Block a user