Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement unique title tags for sections & variants #3768

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

Open
zenoachtig wants to merge 1 commit into main
base: main
Choose a base branch
Loading
from zeno/rnd-8507-when-a-site-is-using-variants-for-versioning-implement

Conversation

@zenoachtig
Copy link
Contributor

@zenoachtig zenoachtig commented Oct 28, 2025

No description provided.

Copy link

linear bot commented Oct 28, 2025

Copy link

changeset-bot bot commented Oct 28, 2025

🦋 Changeset detected

Latest commit: 4d23553

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

argos-ci bot commented Oct 28, 2025
edited
Loading

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2 (Inspect) ✅ No changes detected - Oct 28, 2025, 12:53 PM
v2-cloudflare (Inspect) ⚠️ Changes detected (Review) 1 changed Oct 28, 2025, 12:56 PM
v2-vercel (Inspect) ⚠️ Changes detected (Review) 3 changed Oct 28, 2025, 12:56 PM

siteSpaces.length > 1 && // Only if there are multiple variants
siteSpaces.filter((space) => space.space.language === siteSpace.space.language).length >
1 && // Only if there are multiple variants *for the current language*. This filters out spaces that are "just" translations of each other, not versions.
siteSpace.default === false // Only if the variant is not the default one
Copy link
Contributor

@gregberge gregberge Oct 29, 2025

Choose a reason for hiding this comment

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

Put this first it's costless.

if (
sections &&
sections.list.filter((section) => section.object === 'site-section').length > 1 && // Only if there are multiple sections
sections.current.default === false // Only if the current section is not the default one
Copy link
Contributor

@gregberge gregberge Oct 29, 2025

Choose a reason for hiding this comment

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

Put this first it's costless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gregberge gregberge gregberge approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /