mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-28 16:36:48 +09:00
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:
1 parent
6f7f0973db
commit
329d3e361b
1 file changed
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user