You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes and no. we have a Rails application which can run under a relative root url, configured with ActionController::Base.config.relative_url_root. what we noted is:
the reflex is sent with the full path, including the value configured in config.relative_url_root.
StimulusReflex is then unable to resolve the corresponding controller and action.
we had to adjust config.ru to make the relative root url work (prior to adding StimulusReflex)
# This file is used by Rack-based servers to start the application.require_relative"config/environment"mapActionController::Base.config.relative_url_root || "/"dorunRails.applicationendRails.application.load_server
currently we use a small monkey-patch to make it work with StimulusReflex.
Feature Request
Is your feature request related to a problem?
yes and no. we have a Rails application which can run under a relative root url, configured with
ActionController::Base.config.relative_url_root
. what we noted is:config.relative_url_root
.we had to adjust
config.ru
to make the relative root url work (prior to adding StimulusReflex)currently we use a small monkey-patch to make it work with StimulusReflex.
Describe the solution you'd like
would be nice if
relative_root_url
is considered by StimulusReflex.Additional context
nothing really to add
PR link
happy to send a PR if the monkey-patch is good enough :)
The text was updated successfully, but these errors were encountered: