1

I have 4 stores: Each store have the same enable-cookies I would like that each cookie cms url key have a different url so that is relevant to that store E.G:

French store URL Key: activer-les-cookies as all it's contents are in french so it make sense to have the url in french too.

I' know the exception is coming from here: https://github.com/magento/magento2/blob/2.3/app/code/Magento/Cms/Model/Page.php

But I'm looking to find a way to update the url as this wouldn't let me to it via the admin.

Any ideas?

1 Answer 1

0

Here is how to do this at database level:

update cms_page set identifier='activer-les-cookies' where page_id = <page_id>;

Just make sure you update the <page_id> with your real page ID.

3
  • can you please help me here mam? magento.stackexchange.com/q/333053/77631 Mar 18, 2021 at 9:39
  • @Diana Botean I have thought of that already but my concern is to understand the impact also this could have if is changed ? Mar 18, 2021 at 11:33
  • I checked this on a test environment and didn't see any negative behavior, so i suggest you do the same, check this on a test machine and see if anything pops up.
    – Diana
    Mar 18, 2021 at 17:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.