@Hallvard Korsgaard We are looking into this issue currently and will update you soon. Thank you!
Front Door Rules Engine variables
I have a routing rule that forwards a path to a root site with URL rewrite.
www.site.com/site1/path -> backend.site.com/path
www.site.com/site2/path -> backend.site.com/path
At the backend I need to know the original path. I'm trying to use the rules engine to add it in a custom request header. However, I cannot find any doc on how to get anything from the request. Are there any variables I can use in the request header value field?
2 additional answers
Sort by: Most helpful
-
SaiKishor-MSFT 17,231 Reputation points
2020-10-23T19:13:24.23+00:00 @Hallvard Korsgaard Thank you for your patience while we were looking into this issue. At the moment there is no option of using variables for the header value field. However, this feature has been planned already and is in our timeline. Pease let us know if you need any further assistance in the meanwhile. Thank you!
-
Leigh Dastey 1 Reputation point
2020-12-09T19:11:23.397+00:00 I have this same issue.
I currently add a rules engine rule which attaches the referer to the header and use that in my application. It does mean I need to configure a specific rules engine rule for ALL custom domains. Preferentially a tick box option to attach the referer automatically would be ideal, if not then the ability to use variables in my values in rules i.e. $referer...the latter would mean I could create a covering rule instead of 1 per domain.
Variables would be good overall but somethings are likely more common and could be easier with config options.
Do you have a rough idea of when this may be coming as ideally I would like to avoid configuring 60 rules when I move this to production :)