js code cannot reach the api endpoints for action retrieval in specific cases
because it depends on the actual url in the browser
Closes-bug: 1525169
Depends-On: I837e3fe973d72c792cb34711cef9f6507a004d49
Change-Id: Ibffad1a6a24559535c71ea94ba98deeb78ebeccb