Skip to content

Updated Auto-Redirect Flow for Segments #1339

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 5 commits into from
Jun 10, 2025
Merged

Updated Auto-Redirect Flow for Segments #1339

merged 5 commits into from
Jun 10, 2025

Conversation

olegt-codefresh
Copy link
Contributor

No description provided.

@@ -59,8 +59,7 @@
<!-- End of Doc Search Embed Code -->

<script>
const isEnterpriseDocumentationCookieSet = document.cookie.includes('cfdoctype=enterprise')
const commandbarSegment = isEnterpriseDocumentationCookieSet ? '3033bf7f' : '43836ac3'
const commandbarSegment = IS_ENTERPRISE_DOC_COOKIE_SET ? '3033bf7f' : '43836ac3'
Copy link
Contributor

Choose a reason for hiding this comment

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

do we still have this cookie?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't rename it IS_GITOPS_DOC_COOKIE_SET - thank you!

}

async function handleRedirect() {
if (shouldSkipRedirect()) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

if gitops cookie is removed, but user is trying to reach gitops page, we will not redirect him to enterprise?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At this stage, we will maintain a one-way redirect and extend it if necessary.

@codefresh-git-integration
Copy link

@codefresh-git-integration
Copy link

@olegt-codefresh olegt-codefresh merged commit 5aa7985 into master Jun 10, 2025
1 check passed
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.

2 participants