| -rw-r--r-- | ui-shared.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ui-shared.c b/ui-shared.c index 23a893b..7bcb8d3 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -69,11 +69,7 @@ const char *cgit_currenturl(void) { if (!ctx.qry.url) return cgit_rooturl(); - const char *root = cgit_rooturl(); - size_t len = strlen(root); - if (len && root[len - 1] == '/') - return fmtalloc("%s%s", root, ctx.qry.url); - return fmtalloc("%s/%s", root, ctx.qry.url); + return ctx.qry.url; } const char *cgit_rooturl(void) |