Copied to clipboard

Flag this post as spam?

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


  • Jonathan L Folland 32 posts 174 karma points
    2 days ago
    Jonathan L Folland
    0

    V15 Content Delivery API Omitting Language Prefix

    Umbraco version 15 seems to omit the language prefix for the default language in the route path. It did not do this in V14. This also seems to apply only to items contained in properties and only for default language (en-US in this case).

    Notice below the first route.path includes the language prefix. The properties.topLevelMenuItems[].content.properties.secondLevelLinks[].route.path does not include the language prefix. If the language was not en-US, it would be included.

    Is there a setting or means to assure that the language prefix is always included? I would definitely prefer to change this in a configuration rather than need to change the content delivery consumer to check if the language prefix is included.

    {
    "contentType": "header",
    "name": "Header",
    "createDate": "2024-01-28T12:40:51.1139694",
    "updateDate": "2024-08-15T12:59:50.7152203",
    "route": {
        "path": "/en-us/site-settings/header/",
        "startItem": {
            "id": "54034f33-7fb3-4862-b07d-7320cfd2e743",
            "path": "given-data"
        }
    },
    "id": "0620b0bb-3a91-4d86-a93d-0af296cdb454",
    "properties": {
        "topLevelMenuItems": {
            "items": [
                {
                    "content": {
                        "contentType": "topLevelMenuItem",
                        "id": "bb6c1925-0c64-43ef-8af3-97f663172d62",
                        "properties": {
                            "menuTitle": "Services",
                            "topLevelMenuLink": null,
                            "secondLevelLinks": [
                                {
                                    "url": null,
                                    "queryString": null,
                                    "title": "Umbraco",
                                    "target": null,
                                    "destinationId": "bb23473d-d07e-4eef-a84d-cb6f4a7d01d4",
                                    "destinationType": "detailPage",
                                    "route": {
                                        "path": "/services/umbraco/",
                                        "startItem": {
                                            "id": "54034f33-7fb3-4862-b07d-7320cfd2e743",
                                            "path": "given-data"
                                        }
                                    },
    
Please Sign in or register to post replies

Write your reply to:

Draft