Skip to content

Commit

Permalink
[docs] Fix Joy UI docs link regression (mui#38761)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and xcode-it committed Sep 11, 2023
1 parent d55d9a2 commit 24d21e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ https://v4.material-ui.com/* https://v4.mui.com/:splat 301!
/joy-ui/guides/next-js-app-router/ /joy-ui/integrations/next-js-app-router/ 301
/joy-ui/guides/using-joy-ui-and-material-ui-together/ /joy-ui/integrations/material-ui/ 301
/joy-ui/guides/using-icon-libraries/ /joy-ui/integrations/icon-libraries/ 301
/joy-ui/guides/themeable-component/ /joy-ui/customization/creating-themed-components/ 301
/joy-ui/guides/overriding-component-structure/ /joy-ui/customization/overriding-component-structure/ 301

# Proxies

Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/ApiPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function ApiPage(props) {
: '/material-ui/customization/theme-components/#theme-style-overrides';
let slotGuideLink = '';
if (isJoyComponent) {
slotGuideLink = '/joy-ui/guides/overriding-component-structure/';
slotGuideLink = '/joy-ui/customization/overriding-component-structure/';
} else if (isBaseComponent) {
slotGuideLink = '/base-ui/guides/overriding-component-structure/';
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/ComponentsApiContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function ComponentsApiContent(props) {
: '/material-ui/customization/theme-components/#theme-style-overrides';
let slotGuideLink = '';
if (isJoyComponent) {
slotGuideLink = '/joy-ui/guides/overriding-component-structure/';
slotGuideLink = '/joy-ui/customization/overriding-component-structure/';
} else if (isBaseComponent) {
slotGuideLink = '/base-ui/guides/overriding-component-structure/';
}
Expand Down

0 comments on commit 24d21e7

Please sign in to comment.