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 blog newsletter signup id on translated pages #12917

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

robdivincenzo
Copy link
Collaborator

@robdivincenzo robdivincenzo commented Sep 24, 2024

Description

The blog newsletter signup is passing invalid id's on translated pages. Using context to get an "unlocalized" signup_id instead of the | unlocalize filter will address the bug.

To Test

  1. Grab a copy of staging/production data via inv copy-prod-db
  2. View an en version of a blog post with a newsletter i.e. /en/blog/how-to-tell-chat-gpt-generated-text/
  3. Inspect the newsletter and note the data-signup-id and note the id is 1
  4. View the es translation of that same blog post i.e. /es/blog/how-to-tell-chat-gpt-generated-text/
  5. Inspect the newsletter and note the data-signup-id is now 3.
  6. Check out this branch locally and repeat steps 2-5, but note that the data-signup-id remains 1.

Related Issue: TP1-1325 / #12954

┆Issue is synchronized with this Jira Story

@robdivincenzo robdivincenzo temporarily deployed to foundation-s-bugfix-blo-zirayj September 24, 2024 14:10 Inactive
@robdivincenzo robdivincenzo changed the title Fix blog newsletter signup id on translated pages [WIP] Fix blog newsletter signup id on translated pages Sep 24, 2024
@robdivincenzo robdivincenzo changed the title [WIP] Fix blog newsletter signup id on translated pages Fix blog newsletter signup id on translated pages Sep 24, 2024
@mofodevops mofodevops temporarily deployed to foundation-s-bugfix-blo-gb5trr September 25, 2024 19:13 Inactive
@dlopezvsr dlopezvsr temporarily deployed to foundation-s-bugfix-blo-e9l0o6 September 25, 2024 19:26 Inactive
Copy link
Collaborator

@ramram-mf ramram-mf left a comment

Choose a reason for hiding this comment

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

🤘🏿 LGTM, thanks rob.

@robdivincenzo robdivincenzo merged commit d7d9fdb into main Oct 1, 2024
6 checks 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.

4 participants