Forum Discussion
DougS
8 years agoKhoros Oracle
asset.get returns you the fully-qualified URL (the documentation is a bit confusing b/c it says it "returns an asset" when in fact it returns you the URL to that asset), which would be the CDN URL if your community is configured to use a CDN -- it's primary purpose is to make sure that your URLs are returning fully-qualified and that the correct CDN URL is being used.
You will need to use javascript that runs in the browser if you would like to read the contents of that JSON file. You could also use a Studio Endpoint to return JSON if needed.
-Doug
Related Content
- 5 years ago