Mattias Bodlund 1 year ago
parent
commit
ece5cf1658
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/site_controller.rb

+ 1
- 1
app/controllers/site_controller.rb View File

@ -19,7 +19,7 @@ class SiteController < ApplicationController
redirect_to @node.children.viewable.ordered.first.url and return if @node.index? and @node.children.viewable.any?
# Link or render
redirect_to(@node.href) and return if @node.href.present?
redirect_to(@node.href, allow_other_host: true) and return if @node.href.present?
render(template: "site/#{@node.template}")
end


Loading…
Cancel
Save