- 🇨🇷Costa Rica estebanvalerio.h
We are using this patch and it is working as expected.
I can see the patch applied and on
getFormPageTitle()
method, I added a dummy text at the end of title being returned to confirm the Title is updated:return $steps[$step_id]['label'] . ' TEST';
In the attached image, I can see the title updated after following a commerce workflow.
Patch is applied with composer:
"drupal/commerce": { "3113563 - Use Step Label as Page Title": "https://www.drupal.org/files/issues/2020-02-13/3113563-step-label-as-page-title-2.patch" },
- 🇮🇱Israel jsacksick
Discussed this with Ryan on Slack, perhaps we should mimic what we were doing in Commerce 1.x which is:
Checkout: [step label]. (We probably should wrap that in a t().$this->t('Checkout: @step_label');
Thoughts? - 🇮🇱Israel jsacksick
The first comment mentions SEO which is not really a concern for checkout pages which are typically not indexed and shouldn't be.