Avoid extra slash in cable path

When mounting to a `SCRIPT_NAME` of `/`, we were inserting an extra
slash in the cable path.
This commit is contained in:
Kevin McConnell
2025-09-25 10:16:20 +01:00
parent 6f7f0973db
commit 329d3e361b
+1 -1
View File
@@ -2,6 +2,6 @@ module CableHelper
def script_aware_action_cable_meta_tag
tag.meta \
name: "action-cable-url",
content: "#{request.script_name}#{ActionCable.server.config.mount_path}"
content: Pathname(request.script_name) + Pathname(ActionCable.server.config.mount_path)
end
end