New feature to make links environment-aware #2880
Replies: 2 comments 4 replies
-
@robert-bogos Just to understand, for the below rule, do the links on the page that have
|
Beta Was this translation helpful? Give feedback.
-
Hi could we possibly unify this with what we have already w/ Milo + CaaS link transformation? For consumers they update a config using regexes as followed.
Perhaps we could change this from But we use regexes as the business logic cases for rewriting we have is much more complex than having a config manually maintain a flat list of key/value pairs that you have. You may want to change your standard to regexes as well as I would imagine business has much more complex cases that won't be accounted for with your above format. Without regex support, we on CaaS won't be able to re-use your config. |
Beta Was this translation helpful? Give feedback.
-
Description
To enhance the testing experience in the stage environment, we’ve implemented a feature that automatically converts production URLs, on Milo pages, to their stage counterparts.
Usage
To activate this feature, Milo consumers need to add a
stageDomainsMap
JSON to the config they set in their page loading script.The
stageDomainsMap
JSON will basically tell Milo what set of conversions to do for a specific domain, and can be formatted as follows:Guidelines for configuring
stageDomainsMap
:1. Define targeted stage domains as keys:
stageDomainsMap
represents a stage domain or a pattern (plain string or regex) for which the rules will apply.From the example above, these would be 'www.stage.adobe.com', '--bacom--adobecom.hlx.live', '--blog--adobecom.hlx.page', '.business-graybox.adobe.com'., and '^https://.--milo--..hlx.page'.
2. Define the mappings as values:
Example:
An example of integrating this can be found in here.
Beta Was this translation helpful? Give feedback.
All reactions