-
-
Notifications
You must be signed in to change notification settings - Fork 158
Namespace not honored when RelativeLinks=true #763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is this correct? JsonApiDotNetCore/src/JsonApiDotNetCore/Serialization/Server/Builders/LinkBuilder.cs Line 227 in ac5b100
|
You are right that the current behavior is wrong. I'm just wondering if it should be /api/people. Sounds like that would be more useful, according to https://stackoverflow.com/questions/2005079/absolute-vs-relative-urls.
|
LinkBuilder is the place to fix this, but there's also some path parsing in JsonApiMiddleware you may want to verify. |
@fdlane Do you wanna take this one? |
@bart-degreed will do |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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"
?...
Environment
The text was updated successfully, but these errors were encountered: