Trigger Actions on Redirect Pages URL

I am having a problem with Trigger actions for redirect_page's url_suffix


The Problem occurs with the following sequence:

  1. Asset Builder page to create Redirect Pages to a create location (The Asset Builder works fine)


  2. 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

I found a workaround solution.


Apparently, the trigger asset_id's look at the current asset being displayed through the browser, hence it picked up the asset builder's id. Apparently not a bug.



Workaround was to put in one extra step.



Create the redirect page asset as 'under construction'

Enter simple edit for the redirect page asset and change to live.

Trigger now has one further condition to only fire when status is live.



As the redirect page is now the current asset being displayed the trigger puts in the correct assetid value.