app/models/alchemy/page/url_path.rb in alchemy_cms-4.6.7 vs app/models/alchemy/page/url_path.rb in alchemy_cms-5.0.0.beta1
- old
+ new
@@ -27,11 +27,9 @@
@language = @page.language
@site = @language.site
end
def call
- return @page.urlname if @page.definition["redirects_to_external"]
-
if @page.language_root?
language_root_path
elsif @site.languages.select(&:public?).length > 1
page_path_with_language_prefix
else