]> granicus.if.org Git - ejabberd/commitdiff
Remove slash producing url /admin//additions.js
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 9 Jan 2019 10:55:42 +0000 (11:55 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Wed, 9 Jan 2019 10:55:42 +0000 (11:55 +0100)
src/ejabberd_web_admin.erl

index 93f65244ca85a45eef11ce411eb1c9a91d9e6e34..0bcb87153bf1bfd2dfa62d08b70284c7b5b18c22 100644 (file)
@@ -305,7 +305,7 @@ make_xhtml(Els, Host, Node, Lang, JID) ->
                             #xmlel{name = <<"script">>,
                                    attrs =
                                        [{<<"src">>,
-                                         <<Base/binary, "/additions.js">>},
+                                         <<Base/binary, "additions.js">>},
                                         {<<"type">>, <<"text/javascript">>}],
                                    children = [?C(<<" ">>)]},
                             #xmlel{name = <<"link">>,