diff --git a/app/models/communication/website/page/with_path.rb b/app/models/communication/website/page/with_path.rb index 56a4a55d5ff3228588b94b7361247f89deb2ba9a..58ba6ca3bdeac1db9f00d6539d0b3c018c310449 100644 --- a/app/models/communication/website/page/with_path.rb +++ b/app/models/communication/website/page/with_path.rb @@ -31,7 +31,7 @@ module Communication::Website::Page::WithPath # do not use a global Static.clean here because url has protocol with 2 slashes! website_url = website.url # remove trailing slash if needed, because path begins with a slash - website_url = website_url[0..-2] if website_url[0..-2].end_with?('/') + website_url = website_url[0..-2] if website_url.end_with?('/') "#{website_url}#{Static.clean_path path}" end