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.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 903549b..a9a7dc9 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -45,7 +45,11 @@ module ApplicationHelper
end
def page_path(page)
- '/' + ([I18n.locale.to_s] + page.path).join('/')
+ if page.props.path_prefix
+ "/#{I18n.locale.to_s}/#{page.props.path_prefix}/#{page.name}"
+ else
+ '/' + ([I18n.locale.to_s] + page.path).join('/')
+ end
end
#