Skip to content

Commit 2874955

Browse files
committed
Use root_url to setup base_url variable
1 parent 2c47b56 commit 2874955

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/helpers/application_helper.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ def full_title(page_title)
1010
end
1111

1212
def full_url(page_url)
13-
base_url = 'https://coderdojo.jp/'
14-
page_url ||= base_url + @obj.permalink if @obj && !@obj.permalink.nil?
13+
page_url ||= root_url + @obj.permalink if @obj && !@obj.permalink.nil?
1514
if page_url.empty?
16-
"https://coderdojo.jp/" # Default URL
15+
root_url # Default URL
1716
else
1817
page_url
1918
end

0 commit comments

Comments
 (0)