Skip to content
Snippets Groups Projects
Verified Commit e38f6fcb authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett
Browse files

Use readme path to load readme on init

parent d47273f2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -13,7 +13,11 @@ module TreeHelper
end
 
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
 
# Return an image icon depending on the file type and mode
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment