Commit a536a9ed authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Fix repo break when no readme

parent 5505dcad
......@@ -14,7 +14,7 @@ module TreeHelper
def repo_url(project)
if controller_name == 'projects'
readme_path(project)
readme_path(project) || project_tree_path(project, project.default_branch)
else
request.original_url
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment