How to create anchor with relative href
When trying to expose content inside Liferay and thus preventing to have hard-coded absolute URL (including host and port) inside the documents, we have decided to create relative href in the isExposed value This relative href do no have protocol. As a result, the taglib style anchor skip them with a warning, telling that only http(s) href will be created. This is an issue for isExposedAs. However, when gathering data from a local folder, the dc:source value is a local file path. And anchor links shall not be created. While when gathering data from the web, the dc:source links to the web URL and a link should be created.
Maybe we could have tag with an option to force or not the creation of the link.