Skip to content

717 missing link params in redirects upsell link and learn more link#22472

Merged
leonidasmi merged 6 commits intorelease/25.7from
717-missing-link-params-in-redirects-upsell-link-and-learn-more-link
Aug 4, 2025
Merged

717 missing link params in redirects upsell link and learn more link#22472
leonidasmi merged 6 commits intorelease/25.7from
717-missing-link-params-in-redirects-upsell-link-and-learn-more-link

Conversation

@vraja-pro
Copy link
Copy Markdown
Contributor

@vraja-pro vraja-pro commented Aug 1, 2025

Context

Summary

This PR can be summarized in the following changelog entry:

  • Fixes an unreleased bug where link param were missing from the redirects upsell link and learn more link.
  • Refactors references slice according to the link params slice.

Relevant technical choices:

  • I decided to refactor the reference slice for consistency.
  • Removed a selector that was copied but is not related to the redirects page.
  • Removed used values in the preferences.

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • Disable Yoast SEO premium if its active.
  • Navigate to Yoast SEO -> Redirects
  • Check the upsell link has link params, and so as the learn more.
  • Change language to and RTL language (Hebrew/Arabic) and check the design has changed to RTL.

Relevant test scenarios

  • Changes should be tested with the browser console open
  • Changes should be tested on different posts/pages/taxonomies/custom post types/custom taxonomies
  • Changes should be tested on different editors (Default Block/Gutenberg/Classic/Elementor/other)
  • Changes should be tested on different browsers
  • Changes should be tested on multisite

Test instructions for QA when the code is in the RC

  • QA should use the same steps as above.

QA can test this PR by following these steps:

Impact check

This PR affects the following parts of the plugin, which may require extra testing:

UI changes

  • This PR changes the UI in the plugin. I have added the 'UI change' label to this PR.

Other environments

  • This PR also affects Shopify. I have added a changelog entry starting with [shopify-seo], added test instructions for Shopify and attached the Shopify label to this PR.

Documentation

  • I have written documentation for this change. For example, comments in the Relevant technical choices, comments in the code, documentation on Confluence / shared Google Drive / Yoast developer portal, or other.

Quality assurance

  • I have tested this code to the best of my abilities.
  • During testing, I had activated all plugins that Yoast SEO provides integrations for.
  • I have added unit tests to verify the code works as intended.
  • If any part of the code is behind a feature flag, my test instructions also cover cases where the feature flag is switched off.
  • I have written this PR in accordance with my team's definition of done.
  • I have checked that the base branch is correctly set.

Innovation

  • No innovation project is applicable for this PR.
  • This PR falls under an innovation project. I have attached the innovation label.
  • I have added my hours to the WBSO document.

Fixes https://github.com/Yoast/reserved-tasks/issues/717

* Remove unused selector
* Added a constant for the slice name
* Move the window object from the initial state to the initialze file
* Also used the preference name and remove the initial state to the initialze
@vraja-pro vraja-pro added this to the 25.7 milestone Aug 1, 2025
@vraja-pro vraja-pro added the changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog label Aug 1, 2025
Copy link
Copy Markdown
Contributor

@leonidasmi leonidasmi left a comment

Choose a reason for hiding this comment

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

LGTM except one thing. Shouldnt the upsell have a data-action and a data-ctb-id attribute, like the other similar buttons eg. in the settings?

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 1, 2025

A merge conflict has been detected for the proposed code changes in this PR. Please resolve the conflict by either rebasing the PR or merging in changes from the base branch.

…ink-params-in-redirects-upsell-link-and-learn-more-link
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 1, 2025

Pull Request Test Coverage Report for Build 86ad06a365568f893ef9460af96e1ac9c171fefe

Details

  • 0 of 4 (0.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-4.4%) to 52.648%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/js/src/redirects/initialize.js 0 1 0.0%
packages/js/src/redirects/store/preferences.js 0 3 0.0%
Files with Coverage Reduction New Missed Lines %
packages/js/src/redirects/store/preferences.js 1 0.0%
Totals Coverage Status
Change from base Build 4eddde3ba226c56e111c89147f2654998d2dbfd9: -4.4%
Covered Lines: 31023
Relevant Lines: 59692

💛 - Coveralls

@vraja-pro
Copy link
Copy Markdown
Contributor Author

Good catch @leonidasmi, I'll address that in a separate PR.

@leonidasmi
Copy link
Copy Markdown
Contributor

CR + Acceptance is ✅

@leonidasmi leonidasmi merged commit 1b66b19 into release/25.7 Aug 4, 2025
46 of 48 checks passed
@leonidasmi leonidasmi deleted the 717-missing-link-params-in-redirects-upsell-link-and-learn-more-link branch August 4, 2025 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants