Is there an existing issue for this?
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?
- Enable pop-ups (It's disabled by default on 10.X.X)
- Add the Resource Manager module to a page
- 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>
- 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
Is there an existing issue for this?
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?
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>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