payload icon indicating copy to clipboard operation
payload copied to clipboard

plugin-seo: Using tabbedUI with custom id makes custom id stop working

Open GeorgeHulpoi opened this issue 1 year ago • 5 comments

Reproduction: https://github.com/GeorgeHulpoi/payload-seo-bug

  1. Create a collection having a custom id.
  2. Add this collection to seo plugin
  3. Set tabbedUI equal with true.

From now, the id is no longer working, is using the ObjectId + the custom id.

GeorgeHulpoi avatar Sep 15 '23 11:09 GeorgeHulpoi

@GeorgeHulpoi can you replicate this issue with tabs (unnamed) inside a payload project? I do not think this is related to the seo plugin, but more so payload itself.

JarrodMFlesch avatar Sep 15 '23 12:09 JarrodMFlesch

@JarrodMFlesch I don't think I understand what exactly you mean. Do I have to add a single tab with random fields within?

GeorgeHulpoi avatar Sep 18 '23 06:09 GeorgeHulpoi

I mean with a configuration like so:

{
  type: 'tabs',
  tabs: [
    {
      label: 'tab 1',
      fields: [
        {
          name: 'id',
          type: 'text',
          required: true,
          unique: true,
        }
      ]
    }
  ]
}

JarrodMFlesch avatar Sep 18 '23 12:09 JarrodMFlesch

I also wanted to report this issue.

@JarrodMFlesch - How can I add the SEO field inside a tab as you mentioned it? It looks like that the seo takes a bool for tabbedUI and thats it. Once active, it breaks the collection update (e.g. right panel data is now listed below as usual)

wiesson avatar Oct 12 '23 07:10 wiesson

Also faced this problem. image

To reproduce: image Products collection config with custom ID: image

Ivan-Shalnov avatar Nov 01 '23 02:11 Ivan-Shalnov

Reproduced this bug outside the scope of the plugin, it's related to the custom ID field being placed inside a tab (unnamed included)

paulpopus avatar Jan 05 '24 16:01 paulpopus