diff options
-rw-r--r-- | src/controller.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controller.rs b/src/controller.rs index 7a4a44a..90d2d26 100644 --- a/src/controller.rs +++ b/src/controller.rs @@ -27,7 +27,7 @@ pub trait Controller { repo: &Repository, ) -> Result<(Branch, &'a str), Result<Response, Error>>; - /// Builds a URL path from a given Git branch and file path. + /// Builds an absolute URL path from a given Git branch and file path. fn build_url_path<'a>(&self, branch: &Branch, path: &'a str) -> String; /// Returns some HTML info to display for the current page. @@ -111,7 +111,7 @@ impl Controller for SoloController { } fn build_url_path<'a>(&self, branch: &Branch, path: &'a str) -> String { - path.to_owned() + format!("/{}", path) } fn signature(&self, repo: &Repository, parts: &Parts) -> Result<Signature, Error> { |