Skip to content
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

Get API calls redirected - don't want to exclude #240

Closed
scotthannen opened this issue Dec 15, 2015 · 3 comments
Closed

Get API calls redirected - don't want to exclude #240

scotthannen opened this issue Dec 15, 2015 · 3 comments

Comments

@scotthannen
Copy link

https://site.com/api/blog is redirected to https://site.com/blog. It's identifying "api" is a language tag.
I read 215 but I don't want to exclude the url from redirection. I want to localize the url - https://site.com/fr/api/blog.

@scotthannen
Copy link
Author

I see - three letters is interpreted as a language tag. One fix would be to replace the use of "api" in the application.

@turquoiseowl
Copy link
Owner

Instead of localizing the api urls, have you considered using the Content-Language HTTP header to specify the language for api calls?

Otherwise, can you re-specify the question.

@scotthannen
Copy link
Author

Hi,

I might do that. Right now it's just a POC. For testing purposes I modified
it to disregard "api" as a language code. The easiest thing might be just
to change our api routes.
The package is great. We've got a massive task to localize a busy site, and
so far it's covering all the bases.

Thanks
On Dec 15, 2015 2:28 PM, "Martin Connell" [email protected] wrote:

Instead of localizing the api urls, have you considered using the
Content-Language HTTP header to specify the language for api calls?

Otherwise, can you re-specify the question.


Reply to this email directly or view it on GitHub
#240 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants