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

Language redirect not working since 1.14 #166

Closed
0x3e4 opened this issue Jul 24, 2023 · 4 comments
Closed

Language redirect not working since 1.14 #166

0x3e4 opened this issue Jul 24, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@0x3e4
Copy link

0x3e4 commented Jul 24, 2023

I receive the following HTTP 502 "Bad Gateway" error as a local admin user since the update to 1.14:

Url: https://FQDN/admin/dashboard/
Error: Get "http://localhost:3000/admin/en/dashboard": dial tcp 127.0.0.1:3000: connect: connection refused

When i manually update the url with ../en/.. or ../de/.. then the frontend is working. As a local user the booking-ui redirect is working as expected but when i login with a OAuth user (Microsoft) then i receive a similar error like above:

Url: https://FQDN/ui/login/success/000-0-0-0-000
Error: Get "http://localhost:3001/ui/en/login/success/000-0-0-0-000": dial tcp 127.0.0.1:3001: connect: connection refused

Manually fixing the url works here too.
For testing purposes i already set up a new test instance because i initially thought that changing the environment configuration parameter INIT_ORG_LANGUAGE: 'de' after the first start of the instance was the issue but it looks like that version 1.14 has a bug here..?
Also tried to remove and update the language entry directly in the "organizations" psql table but nothing changed.

hats off for the project!

@virtualzone virtualzone added the bug Something isn't working label Jul 24, 2023
virtualzone added a commit that referenced this issue Jul 24, 2023
virtualzone added a commit that referenced this issue Jul 24, 2023
@gabviv73
Copy link
Contributor

Confirmed in latest docker image as of now.
Had to downgrade to 1.13.8 after failing.

virtualzone added a commit that referenced this issue Jul 28, 2023
virtualzone added a commit that referenced this issue Jul 28, 2023
@virtualzone
Copy link
Collaborator

Fixed in latest dev-tagged Docker image. You'll need to add the environment variable FRONTEND_URL to both the Booking UI and the Admin UI containers, such as:

  - image: docker.io/seatsurfing/admin-ui:dev
    name: adminui
    env:
    - name: FRONTEND_URL
      value: "https://seatsurfing.your-domain.com"

@virtualzone
Copy link
Collaborator

Fixed in version 1.14.1.

@0x3e4
Copy link
Author

0x3e4 commented Oct 5, 2023

hmm.. i tried the new release twice but i still face issues like #171

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants