I have just completed my first End-2-End testing in SDL Web 8 where I have created, published (through topology manager) and displayed a piece of content in a .NET Web Application. This feels like a major milestone.
To test some of the functionality I tried loading various items like page content and dynamic links using the new .NET RESTful API.
One of my test cases is resolving a component link with the following test code.
ComponentLink compLink = new ComponentLink(777);
Link myCompLink = compLink.GetLink(12, 124704,8, "targert='wow'", "My text", true, true);
The link resolves correctly, and the resulting URL property contains something like "http://my.domain.com/myfirstwebapp/test.aspx". I was very suprised to see an absolute URL here.
I recognize the domain from when I set up a
Website with Topology Manager, and the 'myfirstwebapp' from the
WebApplication I set up with Topology Manager. In many cases this makes sense. However in our case we have multiple sites and apps consuming this content, and as such need to leverage relative URLs.
When I look in the LINK_INFO table of the Broker Database I see the URLs I would like to use.
Is there a way to configure the micro services to return relative URLs rather than absolute ones?