I am having a problem with Trigger actions for redirect_page's url_suffix
The Problem occurs with the following sequence:
- Asset Builder page to create Redirect Pages to a create location (The Asset Builder works fine)
- Trigger created to update attributes on the newly created Redirect Page asset
Trigger Details
2a. Events: Asset Created = ticked
2b. Conditions: asset_type = redirect page
2c. Condition: tree_location = create location from asset builder
2d. Set Parameter: redirect_page attribute ‘redirect_url’ = http://webaddressxyz?add_to_cart=
2e. Set Parameter: redirect_page attribute ‘url_suffix’ with Source = current asset = assetid
RESULT/PROBLEM:
Step 2d sets the value correctly so the trigger is firing o.k. BUT the assetid in step 2e is set as the assetid of the asset builder page NOT the redirect asset’s asset id.
TESTING:
Manually creating a redirct_page asset in the tree_location results in nothing being recorded in the url suffix.
Nesting the asset builder into another page causes the assetid to be set to that of the page the asset builder is nested into.
How does the trigger even know about the asset builder’s asset id?, let alone use as the current assetid of the redirect page I have just created!
Is this the expected reult? or am I missing something in my Trigger? If it is expected how could I do this?
I have lodged a bug report on this but would be interested on some feedback.
http://webaddressxyz?add_to_cart=
thanks Angus