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

Issue 32: generateLink function should use grails.serverURL in configuration #84

Merged
merged 2 commits into from
Oct 26, 2017

Conversation

ddelponte
Copy link
Collaborator

Made changes so that the generated link will utilize the grails.serveURL value if

  1. grails.serveURL is specified in the app's application.yml or other external config file
  2. the shouldUseServerUrl param is true

This will make it easier for users to override the RegisterController and force it to use the value of serverURL from application.yml if desired.

This addresses the problem reported in issue #32

Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

We should retrieve configuration values without using Holders. See: http://guides.grails.org/grails-quickcasts-retrieving-config-values/guide/index.html

I have done a commit.

@sdelamo sdelamo merged commit 1c55d91 into master Oct 26, 2017
@sdelamo sdelamo deleted the issue-32 branch October 26, 2017 04:52
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.

2 participants