-
Notifications
You must be signed in to change notification settings - Fork 147
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
Links won't use the page_base_url #319
Comments
That should work, but if there's a |
I realized it also happens for regular self links. The only place where it works is pagination. Example blog app: https://github.com/strzibny/ja_serializer_links Seeds will create one post and one comment. Then request I am getting:
and config has:
|
@strzibny I noticed your example app isn't using Scrivener for pagination. The |
Okay, then it makes sense. As I said it works with pagination just not anywhere else. My original comment example would never work. And if I understand correctly the default |
@strzibny to be honest, I don't know the history of why JaSerializer only provides relative links but allows you to prepend pagination links. In any app I've used JaSerializer for the backend, the base URL is always the same for all links, and it has been the client's responsibility to know what that URL is. I can't actually think of any cases where I've personally needed to change the base URL server-side, but that's just my personal experience with it. |
I think my trouble is with the inconsistency of this and that if there is a base URL option that it's actually applied. I am fine with relative links, but mixing both seems wrong as clients have to check if the URL is relative or not. |
I totally agree on the consistency thing. I would definitely be open to supporting the base url for non-paginated links. |
Example:
Now the API should serve it on the following URL:
But the
page_base_url
is not appended.Do I miss something?
The text was updated successfully, but these errors were encountered: