Copied to clipboard

Flag this post as spam?

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


  • Janus Kamp Hansen 19 posts 156 karma points
    1 week ago
    Janus Kamp Hansen
    0

    BUG: Umbraco 14 - Grid Editor - Thumbnails on blocks are prefixed with /umbraco

    In Umbraco 14.3.0, I am setting up a Block Grid Property Editor UI.

    I've created several blocks (Elements) and now I would like to add some thumbnails to complete the backoffice.

    As you can see the thumbnail appears empty.

    When editing the "Hero blok", and selecting the thumbnail image, The thumbnail is selected, not typed, but selected from a location within the wwwroot-scope.

    But when the Umbraco Backoffice is to show it, it gets a 404, because the url is automatically prefixed '/umbraco'.

    No matter what I do, it keeps prefixing /umbraco to url

    Here is the record of table: umbracoDataType with id 1065 Umbraco.BlockGrid:

    {
    "gridColumns": 12,
    "maxPropertyWidth": "100%",
    "blocks": [
        {
            "contentElementTypeKey": "3212393c-6c95-44f2-91d4-77352d45c0fc",
            "allowAtRoot": true,
            "inlineEditing": false,
            "editorSize": "medium",
            "thumbnail": "/wwwroot/assets/thumbnails/heroblock.png"
        },
        {
            "contentElementTypeKey": "2ac0cf99-d494-41d2-8f2b-aebf8ef394cb",
            "allowAtRoot": true
        },
        {
            "contentElementTypeKey": "2a7a56da-f64d-4a8b-aed1-0e0178e159d4",
            "allowAtRoot": true
        },
        {
            "contentElementTypeKey": "0780a434-76c9-4f71-9acc-e355a92a7beb",
            "allowAtRoot": true
        },
        {
            "contentElementTypeKey": "d5977112-9772-466f-a792-83e9ee27ee37",
            "allowAtRoot": true,
            "allowInAreas": true
        },
        {
            "contentElementTypeKey": "9fd8d101-ea2a-4241-b9b7-139581d3b888",
            "allowAtRoot": true,
            "allowInAreas": false
        },
        {
            "contentElementTypeKey": "eeab5bb2-f45b-4542-bb6d-f8d3c75dfed7",
            "allowAtRoot": true,
            "allowInAreas": false
        },
        {
            "contentElementTypeKey": "caaf9b43-1f04-4eca-8028-42f376ca1ddb",
            "allowAtRoot": true,
            "allowInAreas": false
        },
        {
            "contentElementTypeKey": "c4e6e99b-d154-40be-89fa-99284485a5ad",
            "allowAtRoot": true,
            "allowInAreas": false
        },
        {
            "contentElementTypeKey": "2062eb4d-c5b8-48b7-a113-c1c40be46f2d",
            "allowAtRoot": true,
            "allowInAreas": false
        }
    ],
    "useLiveEditing": true
    

    }

    I've also tried to move the "thumbnails" folder to App_Plugins, but /umbraco is still added. Even if I modify the record in the database and sets the thumbnail url starting with ~/, it still prefixes /umbraco.

    What might be wrong?

  • Afreed 47 posts 213 karma points
    7 days ago
  • Janus Kamp Hansen 19 posts 156 karma points
    6 days ago
    Janus Kamp Hansen
    0

    Hi Afreed,

    Thank you for your reply.

    I am only reporting this because @ Umbraco DK Festival, it was said, that we should report the issues that we see - otherwise the Umbraco team will not know.

    The code above does seem to have anything to do with the fact, that the href is changed and prefixed with '/umbraco' and thereby becomes wrong. So that must be something else.

Please Sign in or register to post replies

Write your reply to:

Draft