summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 6aef82354ab..20457572a08 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -240,7 +240,7 @@ module ApplicationHelper
# external links
def link_to(name = nil, options = nil, html_options = {})
if options.kind_of?(String)
- if options[0] != '/' && options[0] != '#'
+ if !options.start_with?('#', '/')
html_options = add_nofollow(options, html_options)
end
end