Skip to content

[Bug]: API requests send incorrect TabId in pop-ups #7127

@DanielBolef

Description

@DanielBolef

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

When opening another page in a pop-up via dnnModal.show, requests from modules on that page get the parent page TabId put in the request headers. This causes problems for APIs that use that, as that module may not exist on the parent page. The TabId of the page open in the pop-up should be sent instead.

Steps to reproduce?

  1. Enable pop-ups (It's disabled by default on 10.X.X)
  2. Add the Resource Manager module to a page
  3. On another page, add a module that opens the first page via dnnModal.show. An example of this would be an HTML module with this HTML:<p><a href="/Test" onclick="return dnnModal.show('/Test?popUp=true',true,550,950,false)">Test Pop-up</a></p>
  4. Open the pop-up

Current Behavior

The incorrect TabId is sent in the request headers; parent page instead of pop-up page. In the example given above, Resource Manager is unable to get its settings and folder information. It may also trigger browser alerts related to the info the API calls were supposed to get.

Expected Behavior

API calls from modules on the pop-up page should have the correct TabId in the request headers. In the example above, Resource Manager should load as expected.

Relevant log output

{"Message":"Specified module instance does not exist."}

Anything else?

No response

Affected Versions

10.2.3 (latest release)

What browsers are you seeing the problem on?

Chrome

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions