Try our conversational search powered by Generative AI!

Url always resolved in master language

Found in

EPiServer.ContentDeliveryApi 1.0.1

Fixed in

EPiServer.ContentDeliveryApi 2.1.0

(Or a related package)

Created

Aug 07, 2018

Updated

Oct 30, 2018

State

Closed, Fixed and tested


Description

Steps to reproduce:

  1. Send a request to the Headless api using the accept language header and set it to "sv".

Expected:
A model where the url is to the Swedish version of the page.

Actual:
The url is to the English version.

{
    "contentLink": {
        "id": 37,
        "workId": 0,
        "guidValue": "394feff3-8ede-4301-a0fd-83d7e48c07f1",
        "providerName": null
    },
    "name": "Air and Firewood",
    "language": {
        "displayName": "Swedish",
        "name": "sv"
    },
    "existingLanguages": [
        {
            "link": "/EPiServer/CMS/Content/en/artists/air-and-firewood,,37/?epieditmode=True",
            "displayName": "English",
            "name": "en"
        },
        {
            "link": "/EPiServer/CMS/Content/sv/artists/air-and-firewood,,37/?epieditmode=True",
            "displayName": "Swedish",
            "name": "sv"
        }
    ],
    "masterLanguage": {
        "displayName": "English",
        "name": "en"
    },
    "contentType": [
        "Page",
        "ArtistDetailsPage"
    ],
    "parentLink": {
        "id": 6,
        "workId": 0,
        "guidValue": "de10db0c-2bbe-4941-a622-3337a60b10eb",
        "providerName": null
    },
    "routeSegment": "air-and-firewood",
    "url": "/en/artists/air-and-firewood/",
    "changed": "2018-08-06T13:04:02Z",
    "created": "2017-11-28T21:41:54Z",
    "startPublish": "2017-11-28T21:41:56Z",
    "stopPublish": null,
    "saved": "2018-08-06T13:04:02Z",
    "status": "Published",
    "category": [],
    "artistName": "Air and Firewood",
    "artistPhoto": "/globalassets/artist-images/air-and-firewood.jpg",
    "artistDescription": "",
    "artistGenre": "Rock",
    "performanceStartTime": "2018-03-31T22:00:00Z",
    "performanceEndTime": "2018-03-31T23:00:00Z",
    "stageName": "Maple",
    "artistIsHeadliner": true
}