Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I am using Umbraco as a headless CMS and therefore need image src“s, links to files and so on to be absolute. How do I turn that on?
Have tried to set it to "Absolute" in appSettings,json with both:
Umbraco.UmbracoCmsCoreModelsPublishedContentUrlMode
and
Umbraco.CMS.UmbracoCmsCoreModelsPublishedContentUrlMode
Hi Martin
I think it's a setting inside Umbraco - CMS - WebRouting - UrlProviderMode
https://our.umbraco.com/documentation/Reference/Configuration/WebRoutingSettings/
By default it's set to 'Auto'
https://github.com/umbraco/Umbraco-CMS/blob/e626fca2432582f052cb13654eedd9e60ef8723f/src/Umbraco.Core/Models/PublishedContent/UrlMode.cs
So if you configure this to be Absolute, by default... in your appSettings.json file
"Umbraco": { "CMS": { "WebRouting": { "UrlProviderMode": "Absolute" } } }
I think that's what you need!
regards Marc
Thanks - that works! :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to make Umbraco render absolute urls to media?
Hi,
I am using Umbraco as a headless CMS and therefore need image src“s, links to files and so on to be absolute. How do I turn that on?
Have tried to set it to "Absolute" in appSettings,json with both:
and
Hi Martin
I think it's a setting inside Umbraco - CMS - WebRouting - UrlProviderMode
https://our.umbraco.com/documentation/Reference/Configuration/WebRoutingSettings/
By default it's set to 'Auto'
https://github.com/umbraco/Umbraco-CMS/blob/e626fca2432582f052cb13654eedd9e60ef8723f/src/Umbraco.Core/Models/PublishedContent/UrlMode.cs
So if you configure this to be Absolute, by default... in your appSettings.json file
I think that's what you need!
regards Marc
Thanks - that works! :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.