Prefix links in templates with URIPrefix and add the input field to the Listener editor. The URIPrefix is provided as a top-level template variable. All URIs have been changed to have the prefix prepended.
Add these values to the template and use them when linking to any module