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

Adds APP_URL as base tag href to enable loading via ui via ingress ro… #2195

Merged
merged 1 commit into from Feb 15, 2023

Conversation

simo9000
Copy link
Contributor

What

  • Modifies the ui index view and model to bind the APP_URL to the href attribute of an added element.
  • Modifies the deployment chart for the ui to allow the APP_URL to be set by values.yaml

Why
This change enables configuration to allow the ui to be accessed via ingress rules.

@idanovinda
Copy link
Member

👍

@FxKu FxKu added this to the 1.9.1 milestone Feb 15, 2023
@FxKu
Copy link
Member

FxKu commented Feb 15, 2023

👍

@FxKu FxKu merged commit 8356ebf into zalando:master Feb 15, 2023
@FxKu
Copy link
Member

FxKu commented Feb 15, 2023

Thanks @simo9000 ! Good to have this localhost address not hard-coded anymore in the deployment template.

@@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<base href="{{app_url}}">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simo9000 unfortunately, this change introduces a breaking change, see #2302. Now everybody has to set appUrl because with the default localhost appUrl as base the app will not load. App URL is only used for authorization. The rest is full links. Maybe most users haven't used it so having it hardcoded in deployment.yaml template was fine. I have to read up on ingress rules, but can you tell us why you need this to be changed?

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

Successfully merging this pull request may close these issues.

None yet

3 participants