mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Replace base_uri with base_path (#10879)
DEV: Replace instances of Discourse.base_uri with Discourse.base_path
This is clearer because the base_uri is actually just a path prefix. This continues the work started in 555f467.
This commit is contained in:
committed by
GitHub
parent
5e3130ac26
commit
721ee36425
@@ -45,8 +45,8 @@ class RobotsTxtController < ApplicationController
|
||||
end
|
||||
|
||||
def self.fetch_default_robots_info
|
||||
deny_paths = DISALLOWED_PATHS.map { |p| Discourse.base_uri + p }
|
||||
deny_all = [ "#{Discourse.base_uri}/" ]
|
||||
deny_paths = DISALLOWED_PATHS.map { |p| Discourse.base_path + p }
|
||||
deny_all = [ "#{Discourse.base_path}/" ]
|
||||
|
||||
result = {
|
||||
header: "# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file",
|
||||
|
||||
Reference in New Issue
Block a user