Created image asset URL incorrect

G'Day,


In our Matrix set up we have an images folder located outside of any sites (see attached). This is then linked under various sites (the parent asset is linked and it takes the children with it).



We have set up an image asset builder with "Additional Create Locations" set using a GET variable. Created assets are set to Live. The asset builder is as vanilla as possible (it was set up specifically for testing). The Created body copy returns "%created_assetid%<br>%created_asset_url%".



If we specify a folder under a site as the create location, the Created body copy returns the __data URL of the asset. If we specify the images folder, the Created body copy returns the Matrix URL of the asset. This is despite the asset being live and unrestricted. Checking the webpath of the asset returns the __data URL. This appears to be occurring with other File assets as well.



At this point we are completely stumped. We need the correct, __data, URL to be returned as this asset builder is meant to be part of a larger tool. Can anyone point out what we are missing here?
images-folder-location.jpg (16.1 KB)

That's normal because the "Images" folder you're creating it under doesn't have any URLs applied to it.


If you want it to inherit a __data URL you need to follow these rules:


  1. Create it under a Root Node which has a proper URL from an actual Site asset
  2. Have Public User Read Permission
  3. Be Live
  4. Set to Unrestricted Access to "Yes"

Thanks for your reply. Unfortunately it doesn't seem to be accurate. We have another folder at the same level as the Image folder's parent. If we create the asset in there we receive the __data URL. If we create it in the Image folder's parent we receive the Matrix URL.


I have checked - both images are live, have the Unrestricted Access set to "Yes" and have public user read permission. There appears to be nothing different between the folders.

[quote]
Thanks for your reply. Unfortunately it doesn't seem to be accurate. We have another folder at the same level as the Image folder's parent. If we create the asset in there we receive the __data URL. If we create it in the Image folder's parent we receive the Matrix URL.



I have checked - both images are live, have the Unrestricted Access set to "Yes" and have public user read permission. There appears to be nothing different between the folders.

[/quote]



Does that Folder have any Links under any site assets? Because on my system if I create a Folder with no URL applied to it, assets below it will not inherit any /__data URL.

Both folders are linked under multiple Site Assets.

[quote]
Both folders are linked under multiple Site Assets.

[/quote]



Have you tried just creating the asset from the Asset Map itself (without an Asset Builder)? What happens when you try that? Does it inherit a /__data URL?

It does. And the web path screen of assets created in the Image folder shows the /__data URL as well.