Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(console): docs link should work for en-US locale #1594

Merged

Conversation

charIeszhao
Copy link
Member

Summary

Fixed an issue that if user first login to AC without specifying language, with a default locale like en-US, the documentation links would be incorrect and clicking it will end up in an non-existing page.

Testing

  • Tested locally in admin console with en-US locale and with language setting cleared from DB. Documentation link navigation worked as expected. User can navigate to the correct docs page in English

@linear
Copy link

linear bot commented Jul 18, 2022

@github-actions
Copy link

COMPARE TO master

Total Size Diff 📈 +304 Bytes

Diff by File
Name Diff
packages/console/src/components/AppContent/components/Sidebar/hook.tsx 📈 +63 Bytes
packages/console/src/hooks/use-language.ts 📈 +302 Bytes
packages/console/src/pages/GetStarted/hook.ts 📈 +2 Bytes
packages/console/src/pages/Settings/index.tsx 📈 +59 Bytes

Copy link
Member

@gao-sun gao-sun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@gao-sun gao-sun changed the title fix(console): docs link doesn't work for en-US locale fix(console): docs link should work for en-US locale Jul 19, 2022
@gao-sun gao-sun enabled auto-merge (squash) July 19, 2022 00:54
@gao-sun gao-sun merged commit 78fcb03 into master Jul 19, 2022
@gao-sun gao-sun deleted the charles-log-3752-docs-link-in-ac-doesnt-work-for-en-us branch July 19, 2022 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants