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

Allow usage of Rails relative_url_root configuration #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eliasfroehner
Copy link

@eliasfroehner eliasfroehner commented Nov 6, 2023

Description 📖

This pull request implements the ability to use the relative_url_root configuration of Rails.

Background 📜

Sometimes it is necessary to host multiple Rails applications on a single host without subdomains. Therefore you need to use the relative_url_root configuration to set the prefix for the specific Rails application. For example

  • Rails app 1: host.tld/rails_app_1 (config.relative_url_root = 'rails_app_1')
  • Rails app 2: host.tld/rails_app_2 (config.relative_url_root = 'rails_app_2')

The fix 🔨

js_from_routes now supports the _relative_url_root configuration. It set the relative_url_root configuration of Rails by default, but could be overridden.

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