Fix link so it works with and without a prefix
This commit is contained in:
parent
9b2cf4c027
commit
628d035c2d
|
|
@ -18,7 +18,7 @@
|
|||
</p>
|
||||
|
||||
<p>
|
||||
To use it, <a href="/cli/rabbitmqadmin">download it</a> from this node (right click,
|
||||
To use it, <a href="rabbitmqadmin">download it</a> from this node (right click,
|
||||
Save As), make sure it is executable, and drop it in your <code>PATH</code>. Note that
|
||||
many browsers will rename the
|
||||
file <code>rabbitmqadmin.txt</code>. <code>rabbitmqadmin</code> requires Python
|
||||
|
|
|
|||
|
|
@ -32,10 +32,10 @@ build_routes(Ignore) ->
|
|||
ThisLocalPath = static_path(?MODULE),
|
||||
Prefix = rabbit_mgmt_util:get_path_prefix(),
|
||||
RootIdxRtes = build_root_index_routes(Prefix, ThisLocalPath),
|
||||
LocalPaths = [static_path(M) || M <- modules(Ignore)],
|
||||
ApiIdxRte = {"/api", cowboy_static, {file, ThisLocalPath ++ "/api/index.html"}},
|
||||
CliIdxRte = {"/cli", cowboy_static, {file, ThisLocalPath ++ "/cli/index.html"}},
|
||||
MgmtRdrRte = {"/mgmt", rabbit_mgmt_wm_redirect, "/"},
|
||||
LocalPaths = [static_path(M) || M <- modules(Ignore)],
|
||||
LocalStaticRte = {"/[...]", rabbit_mgmt_wm_static, LocalPaths},
|
||||
% NB: order is significant in the routing list
|
||||
Routes0 = build_module_routes(Ignore) ++
|
||||
|
|
|
|||
Loading…
Reference in New Issue