Commit e19bfe2e authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'namespace-find-pages-host-by-path' into 'master'

Lookup namespace by pages host using find_by_path

See merge request gitlab-org/gitlab!25585
parents a0ee5467 70649515
......@@ -130,7 +130,7 @@ class Namespace < ApplicationRecord
return unless host.ends_with?(gitlab_host)
name = host.delete_suffix(gitlab_host)
Namespace.find_by_full_path(name)
Namespace.find_by_path(name)
end
# overridden in ee
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment