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

Relative url #60

Open
musashimm opened this issue Jan 2, 2025 · 0 comments · May be fixed by #62
Open

Relative url #60

musashimm opened this issue Jan 2, 2025 · 0 comments · May be fixed by #62

Comments

@musashimm
Copy link

Spark does not take into account that application is running under relative url:

Rails.application.configure do
  config.relative_url_root = "/suburl"
end

As workaround I added relative url to file spark/app/assets/javascripts/hotwire_spark.js:

var consumer = createConsumer("/suburl/hotwire-spark");

var consumer = createConsumer("/hotwire-spark");

codergeek121 added a commit to codergeek121/hotwire-spark that referenced this issue Jan 3, 2025
This allows users to reconfigure their mount path, e.g. to add a prefix to it. With this config, hotwired#60 could reconfigure the mount path to include the relative_url_root prefix.
@codergeek121 codergeek121 linked a pull request Jan 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant