-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Tolgee init with relative URL is not working #3405
Comments
Hello! |
Thanks for the quick response! We are using statically provided data in production mode, but this is not related to production but to test server where we deploy the bundle but translation managers are working with the translations and updating them live in the Tolgee instance. (so we are not working with static data). |
OK, sorry for misunderstanding. It looks like your solution worked just by coincidence. However, it's still not clear for me. Where have been the data fetched from? Is it Tolgee REST API or Content delivery?
What was working just fine? |
Sorry for not being 100% clear on the setup. We are using Tolgee in the React app with i18n and the
For the local development environment having |
Aha, understood. Then I am reopening this and will let @stepan662 to consider the next steps. PR fixing this issue is appreciated btw! 🙂 |
Having a relative URL in the
apiUrl
of tolgee config was working fine until the v5.32.0Since then, having .e.g.
apiUrl: '/i18n'
is not working. We are getting this error during init:I think that the changes here #3404 broke it, specifically this line a61f250#diff-1074ae85ad4b1e90943dc83f6c7be7cab57f7fe1cb06788580b278371bf471ddR16
This will fail since the
base
is not provided, see https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#baseWe are now unable to use relative URL in the config which is important to us as we have proxies set up on our servers to handle correct redirections.
The text was updated successfully, but these errors were encountered: