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

www.consoherozh.fr url hardcoded at logout. #4

Open
artlog opened this issue Mar 7, 2022 · 1 comment
Open

www.consoherozh.fr url hardcoded at logout. #4

artlog opened this issue Mar 7, 2022 · 1 comment

Comments

@artlog
Copy link

artlog commented Mar 7, 2022

When running grails application in development environment ( grails -Dgrails.env=dev ... runApp ) localhost application get redirected to
https://www.consoherozh.fr/ at logout. This affects any deployment on another server than www.consoherozh.fr

origin

commit :5e150264beb42acc2e8ba10726b020b016b65a82
grails.serverURL = ["https://www.consoherozh.fr"]

was (and still is) needed for mail template to provide right url to user.

https://github.com/consometers/consoherozh/blob/consoherozh/src/workflow/Activiti_registerService.forgotPassword.bpmn
$context.result.serverUrl

when password is forgotten.

fix should be to find a way to correctly externalize and make configurable grails.serverURL

@artlog
Copy link
Author

artlog commented Mar 7, 2022

WORKAROUND :

set grails.serverURL as string within smarthome.config.location configuration file.

For grails.env=dev to provide grails.serverURL add this into smarthome.config.location config file

grails {
      serverURL="http://localhost:8080/smarthome-application"
}

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