activeadmin-selleo-cms 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,6 +22,8 @@ class PagesController < CmsController
|
|
|
22
22
|
redirect_to page_path(I18n.locale, root)
|
|
23
23
|
elsif @page.redirect_to_first_sub_page
|
|
24
24
|
redirect_to page_path(I18n.locale, @page.children.first || root)
|
|
25
|
+
elsif @page.is_link_url
|
|
26
|
+
redirect_to @page.link_url
|
|
25
27
|
end
|
|
26
28
|
end
|
|
27
29
|
|
data/app/helpers/pages_helper.rb
CHANGED
|
@@ -10,7 +10,7 @@ module PagesHelper
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def with_host(relative_path)
|
|
13
|
-
"#{request.protocol}#{request.host_with_port}#{relative_path}"
|
|
13
|
+
relative_path.match(/http/) ? relative_path : "#{request.protocol}#{request.host_with_port}#{relative_path}"
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def link_to_search_result(result)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin-selleo-cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.31
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-04-
|
|
12
|
+
date: 2013-04-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|