"404 Not Found" for CSV/JSON if source is specified as URL

Description

User sees `404 Not found` when using CSV/JSON macro (in page edits only), specify URL as the source of data. Macro works as expected in view mode.

This is because we are relying on context information coming from "AP.context.getContext()" which is sending erroneous data while the page is in edit mode.

Opened devhelp ticket:
https://ecosystem.atlassian.net/servicedesk/customer/portal/14/DEVHELP-4151

Environment

None

Assignee

Bhavesh Kumar (Bob Swift Atlassian Apps)

Reporter

Vikram Ponnoju

Labels

None

Support Entitlement

None

Components

Sprint

None

Fix versions

Affects versions

Priority

Blocker
Configure