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

Use readme path to load readme on init

parent d47273f2
...@@ -13,7 +13,11 @@ module TreeHelper ...@@ -13,7 +13,11 @@ module TreeHelper
end end
def repo_url(project) def repo_url(project)
controller_name == 'projects' ? project_tree_url(project, project.default_branch) : request.original_url if controller_name == 'projects'
readme_path(project)
else
request.original_url
end
end end
# Return an image icon depending on the file type and mode # Return an image icon depending on the file type and mode
......
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