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 the Public URL from a Springboot Controller #2792

Open
ikoyski opened this issue Nov 27, 2019 · 0 comments
Open

Get the Public URL from a Springboot Controller #2792

ikoyski opened this issue Nov 27, 2019 · 0 comments

Comments

@ikoyski
Copy link

ikoyski commented Nov 27, 2019

I was wondering if anyone can help me on this one. When i start the the app, the public/preview URL changes from time to time.. Now its http://node17.codenvy.io:44082/ and later on it will change so its dynamic.

How can i get the current public/preview base URL from code? E.g. ${baseURL}

String successUrl = ${baseURL} + "/result?flag=Successful";
String failUrl = ${baseURL} + "/result?flag=Unsuccessful";
String cancelUrl = ${baseURL} + "/result?flag=Canceled";

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

1 participant