Skip to content

Critical: atkReloadView does encode URL values twice #924

@mvorisek

Description

@mvorisek

Example:

        $button = $this->app->add('Button')->set('click me');
        $button->on('click', $button->js()->atkReloadView(
            ['uri' => $button->url(), 'uri_options' => ['move' => 'next']]
        ));

How to reproduce?

  • navigate to URL: https://xxx/yyy.php?crud_model=AppAtk4%5CModel
  • click the button and notice, that the new URL of that request is URL encoded twice

Currently this URL is requested:

https://xxx/yyy.php?crud_model=AppAtk4%255CModel

vs. (expected)

https://xxx/yyy.php?crud_model=AppAtk4%5CModel

Btw: where is the atkReloadView JS method defined? It seems that there is only atkjs-ui.min.js.

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