nova-tabs icon indicating copy to clipboard operation
nova-tabs copied to clipboard

Slug field inside tab doesn't work since Nova 4.14.0

Open FreekVR opened this issue 1 year ago • 1 comments

Nova 4.14.0 included the following change:

Slug fields now return their preview from the server.

This change now yields an error given the following Tabs setup:

Tabs::make('Content', [
  Tab::make(
      'TEST',
      [
          Text::make('Foo'),
          Slug::make('Sluggy')->from('Foo')
      ]
  )
])->showTitle(),
HTTP-404 /nova-api/undefined/field/sluggy/preview

It seems where it says "undefined" in the URL, should be the resource name, but that's somehow lost when the Slug field is included in a Tab.

FreekVR avatar Oct 05 '22 14:10 FreekVR

Fixed Bug in New PR... https://github.com/eminiarts/nova-tabs/pull/256

ali-raza-saleem avatar Oct 05 '22 19:10 ali-raza-saleem

I'm afraid the original issue still persists on version 2.2.3;

POST http://localhost/nova-api/undefined/field/slug:en/preview 404

Where the URL now contains "undefined" should be the resource name normally.

FreekVR avatar Oct 26 '22 10:10 FreekVR