summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/link_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb
index 2d312302..e5fc6326 100644
--- a/app/helpers/link_helper.rb
+++ b/app/helpers/link_helper.rb
@@ -9,6 +9,10 @@ module LinkHelper
9 ) 9 )
10 end 10 end
11 11
12 def content_url_helper path_array
13 request.protocol + request.host_with_port + content_path_helper(path_array)
14 end
15
12 def link_to_path title, path, html_options = {} 16 def link_to_path title, path, html_options = {}
13 if params[:page_path] 17 if params[:page_path]
14 active = (params[:page_path].join("/") == path.sub(/^\//, "")) 18 active = (params[:page_path].join("/") == path.sub(/^\//, ""))