Index: public/help/en/wiki_syntax_detailed_textile.html
===================================================================
--- public/help/en/wiki_syntax_detailed_textile.html (revision 14445)
+++ public/help/en/wiki_syntax_detailed_textile.html (working copy)
@@ -144,7 +144,7 @@
Projects:
- project#3 (link to project with id 3)
- - project:some-project (link to project with name or slug of "some-project")
+ - project:some-project (link to project with identifier "some-project")
- project:"Some Project" (use double quotes for project name containing spaces)
Index: app/helpers/application_helper.rb
===================================================================
--- app/helpers/application_helper.rb (revision 14445)
+++ app/helpers/application_helper.rb (working copy)
@@ -730,7 +730,7 @@
# Forum messages:
# message#1218 -> Link to message with id 1218
# Projects:
- # project:someproject -> Link to project named "someproject"
+ # project:someproject -> Link to project with identifier "someproject"
# project#3 -> Link to project with id 3
#
# Links can refer other objects from other projects, using project identifier:
@@ -864,7 +864,7 @@
link = link_to_attachment(attachment, :only_path => only_path, :download => true, :class => 'attachment')
end
when 'project'
- if p = Project.visible.where("identifier = :s OR LOWER(name) = :s", :s => name.downcase).first
+ if p = Project.visible.where("identifier = :s", :s => name).first
link = link_to_project(p, {:only_path => only_path}, :class => 'project')
end
end