Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nijaz Hameed 38 posts 173 karma points
    May 27, 2024 @ 06:24
    Nijaz Hameed
    0

    Content Delivery API Response for Media URL Returns Absolute URL in RTE Instead of Relative URL

    Which Umbraco version are you using?

    13.2.2

    Bug summary

    No configuration is working to remove the absolute URL from media URLs in the Rich Text Editor (RTE) in the content delivery API response.

    Tried both below options but not working, still abosolute url appends on media url "WebRouting": { "UrlProviderMode": "Relative" }, "RichTextEditor": { "CustomConfig": { "relative_urls": true, "convert_urls":false } },

    Steps to reproduce

    1. Create a media item within the Rich Text Editor (RTE) on a content node.
    2. SET Below Configurations In AppSettings.Json "WebRouting": { "UrlProviderMode": "Relative" }, "RichTextEditor": { "CustomConfig": { "relative_urls": true, "convert_urls":false } },
    3. Enable the Content Delivery API.
    4. Attempt to fetch the content via Content Delivery API.
    5. Notice that the media URL within the RTE returns as an absolute URL instead of a relative URL.

    Expected result / actual result

    The Media Url should be Relative in the RTE Response

Please Sign in or register to post replies

Write your reply to:

Draft