Skip to content

Namespace not honored when RelativeLinks=true #763

Closed
@fdlane

Description

@fdlane

Description

In the GettingStarted App if you set RelativeLinks = true; the links in response do not include the namespace. Should it not return "self": "api/people"?

services.AddJsonApi<SampleDbContext>(options =>
    {
        options.Namespace = "api";
        options.RelativeLinks = true;
     });
{
    "links": {
        "self": "/people"
    },
    "data": [
        {
            "type": "people",
            "id": "1",
            "attributes": {
                "name": "John Doe"
            },
            "relationships": {
                "articles": {
                    "links": {
                        "self": "/people/1/relationships/articles",
                        "related": "/people/1/articles"
...

...

Environment

  • JsonApiDotNetCore Version: master
  • Other Relevant Package Versions: core 3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions