diff options
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 15493e1..b5bb657 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -30,9 +30,7 @@ module ApplicationHelper else klass = options[:class] if options end - if name.starts_with?('#') - path = name - elsif name.starts_with?('http') + if name.starts_with?('#') || name.starts_with?('http') path = name else page = StaticPage.find(name) |