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

Support running on custom url #1532

Open
stepan662 opened this issue Feb 3, 2023 · 6 comments
Open

Support running on custom url #1532

stepan662 opened this issue Feb 3, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@stepan662
Copy link
Contributor

E.g. https://mydomain.com/tolgee

@stepan662 stepan662 added the enhancement New feature or request label Feb 3, 2023
@stepan662 stepan662 changed the title Support FE on custom url Support running on custom url Feb 3, 2023
@Skybladev2
Copy link

Wow, I thought I made something wrong.

I try to host tolgee under some dir (not root) and cannot make it work.

It always renders src and stylesheet with the root path, resulting in something like https://mydomain.com/assets/index-y_piHsrM.js instead of https://mydomain.com/tolgee/assets/index-y_piHsrM.js

Need baseUrl setting. Frontend url does not help.

@JanCizmar
Copy link
Contributor

I wonder, what do we actually need to do to make this working. 🤔 The backend is probably fine, huh?

@am93
Copy link

am93 commented Feb 22, 2024

Based on my experience the problem is usually in the frontend and how it handles the access to static files and how it makes backend requests.

With Angular frontend, you usually have to set "base-href": "/myapp/" if you want the app to be served on /myapp

EDIT: Forgot that you use React. This solution should work for React - https://stackoverflow.com/questions/49429906/how-should-i-configure-create-react-app-to-serve-app-from-subdirectory

@stepan662 stepan662 self-assigned this Feb 26, 2024
@stepan662
Copy link
Contributor Author

I guess FE will be much more pain, backend will be more about just adding the configuration field.

@Larsschoen
Copy link

So it is not supported? I tought setting TOLGEE_FRONT_END_URL could fix this issue.

@stepan662
Copy link
Contributor Author

No, not currently, TOLGEE_FRONTE_END_URL is just for redirects

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

No branches or pull requests

5 participants