Skip to content

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