Skip to content

DOP-5687: Remove client-side redirects #1468

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

Merged
merged 8 commits into from
Jul 1, 2025
Merged

Conversation

rayangler
Copy link
Collaborator

@rayangler rayangler commented Jun 24, 2025

Stories/Links:

DOP-5687

Current Behavior:

Atlas CLI Prod

Staging Links:

Atlas CLI Staging

Notes:

This PR removes the client-side browser "redirects" in favor of server-side redirects triggered by B2K (related PR).

Once merged, all sites and versions should be redeployed before merging in the B2K PR.

To test:

  1. Set your browser's primary language to one of the languages supported by MongoDB docs (Korean, Chinese, Japanese, Portuguese).
  2. Ensure your browser storage for mongodb-docs does not have a preferredLocale key-value. If it does, remove it or clear your local storage.
  3. Clicking on the staging link should NOT redirect you, whereas clicking on the production link should.

README updates

    • This PR introduces changes that should be reflected in the README, and I have made those updates.
    • This PR does not introduce changes that should be reflected in the README

Copy link

netlify bot commented Jun 24, 2025

Deploy Preview for docs-frontend-stg ready!

Name Link
🔨 Latest commit 19901ac
🔍 Latest deploy log https://app.netlify.com/projects/docs-frontend-stg/deploys/6863e8a42041c20008368721
😎 Deploy Preview https://deploy-preview-1468--docs-frontend-stg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@@ -30,7 +30,13 @@ const SEO = ({ pageTitle, siteTitle, showDocsLandingTitle, canonical, slug, noIn
const englishHref = localeHrefMap['en-us'];
if (englishHref) {
hrefLangLinks.push(
<link className={smartlingNoRewriteClass} rel="alternate" hrefLang="x-default" href={englishHref} />
<link
key="x-default"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Noticed a key error I previously caused, so fixing it here

@rayangler rayangler marked this pull request as ready for review June 25, 2025 13:18
@docs-builder-bot
Copy link

docs-builder-bot commented Jun 26, 2025

🔄 Deploy Preview for docs-frontend-stg processing

Item Details
🔨 Latest Commit b43615e15472a45ac536c972f054b653ee735dde
😎 Deploy Preview https://deploy-preview-1468--docs-frontend-stg.netlify.app
🔍 Build Logs View Logs

@rayangler rayangler merged commit b3ddef0 into main Jul 1, 2025
6 checks passed
@rayangler rayangler deleted the DOP-5687-lang-redirects branch July 1, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants