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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index a9a7dc9..a7e962f 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -12,7 +12,7 @@ module ApplicationHelper
# two forms:
#
# (1) link('page-name')
- # (2) link('label' => 'page-name')
+ # (2) link('label' => 'page-name-or-url')
#
# both accept optional options hash:
#
@@ -29,7 +29,7 @@ module ApplicationHelper
else
klass = options[:class] if options
end
- if name.starts_with?('#')
+ if name.starts_with?('#') || name.starts_with?('http')
path = name
else
page = StaticPage.find(name)