adobe / aio-lib-runtime

Adobe I/O Javascript SDK implementing a value-add layer for Adobe I/O Runtime

Home Page:https://www.adobe.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

an action with annotation `web-export: raw` should be considered a web action in getActionUrl

shazron opened this issue · comments

See:

const webArg = action['web-export'] || action.web

Expected

If I set the annotation web-export for an action to raw, it is considered a web action url

Actual

If I set the annotation web-export for an action to raw, it is considered a non-web action url

Fix

  1. add a failing test
  2. Replace the quoted line above with const webArg = action?.annotations?.['web-export'] || action?.web