gregor.tusar
09/09/2024, 12:32 PMlinksConfig.RegistrationPage?.Url(null, UrlMode.Absolute)
where RegistrationPage is IPublushedContent
.
So I have a few pages here, but the URLs that I get are sometimes for Published and sometimes for Subscriber.
I tried to get this JSON response via https://my-webiste.com URL, but got back some of the links pointing to Publisher server (https://cm.my-website.com)
I have both domains specified in Domains and hostnames, but I would assume the first one or at least always the same one is used to generate URL.
How to make this predictable?
Thank you
https://cdn.discordapp.com/attachments/1282680052936343614/1282680053267828748/image.png?ex=66e03c63&is=66deeae3&hm=a6b2b0d0df17421c2e38f705c2d94b14e9ce68914c72e3462c81ae78e77798aa&Mike Chambers
09/09/2024, 1:23 PMUrlMode.Absolute
to get things correct in a loadbalanced environment. Save yourself the headache and add an appsetting (global or environment specific depending on exact needs) for the primaryDomain and interpolate the urls in code from that. 🙂Mike Chambers
09/09/2024, 1:32 PMKaspar Boel Kjeldsen
09/09/2024, 3:04 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by