summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/routing.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/routing.inc.php b/web/lib/routing.inc.php
index dfd6942..206886c 100644
--- a/web/lib/routing.inc.php
+++ b/web/lib/routing.inc.php
@@ -54,7 +54,7 @@ function get_pkg_uri($pkgname) {
if ($USE_VIRTUAL_URLS) {
return $PKG_PATH . '/' . urlencode($pkgname) . '/';
} else {
- return get_route($PKG_PATH) . '?N=' . urlencode($pkgname);
+ return '/' . get_route($PKG_PATH) . '?N=' . urlencode($pkgname);
}
}
@@ -70,6 +70,6 @@ function get_user_uri($username) {
if ($USE_VIRTUAL_URLS) {
return $USER_PATH . '/' . urlencode($username) . '/';
} else {
- return get_route($USER_PATH) . '?U=' . urlencode($username);
+ return '/' . get_route($USER_PATH) . '?U=' . urlencode($username);
}
}