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

Rename environment variable to rails convention #72

Closed

Conversation

joescottdave
Copy link
Contributor

@joescottdave joescottdave commented Dec 20, 2021

We have erroneously been using RELATIVE_URL_ROOT in place of the
conventional RAILS_RELATIVE_URL_ROOT which has the added side effect of
setting Rails.application.config.application_controller.relative_url_root which
in turn prepends all routes generated by url_helpers.

Test by starting rails console with RAILS_RELATIVE_ROOT_URL set.
include Rails.application.routes.url_helpers and call root_path

Addresses epimorphics/hmlr-linked-data#52

We have erroneously been using RELATIVE_URL_ROOT in place of the
conventional RAILS_RELATIVE_URL_ROOT which has the added side effect of
setting
Rails.application.config.application_controller.relative_url_root which
in turn prepends all routes generated by url_helpers.

Test by starting rails console with RAILS_RELATIVE_ROOT_URL set
include Rails.application.routes.url_helpers and call root_path
@joescottdave
Copy link
Contributor Author

These changes will be made as part of #71

@joescottdave joescottdave deleted the 52-relative-url-root-prepending branch August 23, 2022 10:11
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.

1 participant