You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +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,22 +143,11 @@ window.yaContextCb.push(() => {
|
|||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: 'English',
|
label: 'English',
|
||||||
target: '_blank',
|
href: 'https://en.openintegrations.dev',
|
||||||
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');
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
// ... more items
|
||||||
|
],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
|
|||||||
Reference in New Issue
Block a user