aboutsummaryrefslogtreecommitdiff
path: root/git-arr
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2014-12-31 10:50:08 +0100
committerAlberto Bertogli <albertito@blitiri.com.ar>2015-01-11 22:18:22 +0100
commit93b161c23ea90f2dd9f7329a1afac51e23ebe3aa (patch)
treecf989470b4af88d16a6846d8be31d92d98d59274 /git-arr
parent7f2f67629f1d6b7c5046ae43c1a293137c89b4d3 (diff)
downloadgit-arr-fork-93b161c23ea90f2dd9f7329a1afac51e23ebe3aa.zip
views: fix broken URLs involving hierarchical branch names
Git branch names can be hierarchical (for example, "wip/parser/fix"), however, git-arr does not take this into account when formulating URLs on branch, tree, and blobs pages. These URLs are dysfunctional because it is assumed incorrectly that a single "../" is sufficient to climb over the branch name when computing relative paths to resources higher in the hierarchy. This problem manifests as failure to load static resources (stylesheet, etc.), broken links to commits on branch pages, and malfunctioning breadcrumb trails. Fix this problem by computing the the proper number of "../" based upon the branch name, rather than assuming that a single "../" will work unconditionally. (This is analogous to the treatment already given to hierarchical pathnames in tree and blob views.) Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Diffstat (limited to 'git-arr')
0 files changed, 0 insertions, 0 deletions