Magento2: CMS page in different store with same URL can't be saved

Created on 13 Sep 2016  路  5Comments  路  Source: magento/magento2

Preconditions

  1. Magento 2.0.9

Steps to reproduce

  1. I add a new cms page in (content > pages) for a different store language
  2. The URL must be same as a page url of an other store
  3. Save

Expected result

  1. Page should be saved

Actual result

  1. Get error: URL key for specified store already exists.
    image
Cms

All 5 comments

Hi @flipflap , can you please provide more detailed steps to reproduce the issue?

The URL must be same as a page url of an other store

Do you mean store view?

Thanks,
Anton.

Yes Anton, store view.

Thanks @flipflap .

This is a correct behavior. The URL key for each page under the same Store has to be unique. Meaning, for that translated page on another store view (e.g. EN) a unique URL key should be specified, which is different from those you have on DE and FR store views.

I hope this will help.

I'm closing this issue since it's not a bug. Please feel free to reopen if you have additional questions.

Best,
Anton.

Ok, thanks. But my language switcher from my old magento doesn't work anymore that way. Can you give me some hint how to build a language switcher that works for CMS pages in Magento 2?

Regards

Oliver

Language switcher for CMS content has never been native Magento functionality. We are having this in CMS roadmap

Was this page helpful?
0 / 5 - 0 ratings