8000 Endpoint params not implemented in Browser form field · Issue #2751 · area17/twill · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Endpoint params not implemented in Browser form field #2751
Open
@zachgarwood

Description

@zachgarwood

Description

The documentation for the Browser form field (https://twillcms.com/docs/form-fields/browser.html) specifies a params option. However, this option has not been fully implemented.

Steps to reproduce

Create a browser form field with endpoints and params:

<x-twill::browser
    module-name="publications"
    name="publications"
    label="Publications"
    :endpoint="[
        [
            'value' => '/path/to/publication/browser',
            'label' => 'Publications'
        ]
    ]"
    :params="['publication_type' => type]"
/>

Expected result

I expect the params to be appended to the end of the endpoint path as query parameters, for example:
/path/to/publication/browser?page=1&publication_type=type

Actual result

The actual result is that the params are not included in the url query parameters:
/path/to/publication/browser?page=1

Versions

Twill version: 3.5.0
Laravel version: 10.48.29
PHP version: 8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0