summaryrefslogtreecommitdiff
path: root/app/services/wiki_pages
diff options
context:
space:
mode:
authorSebastian Klier <sebastian@sebastianklier.com>2016-04-05 13:36:09 +0800
committerSebastian Klier <sebastian@sebastianklier.com>2016-04-20 08:25:41 +0800
commita88f0a1fd8fc150432729f525f1c2cecde93301a (patch)
tree1d4298773bbb37c867fc222832b473d8b158de32 /app/services/wiki_pages
parent559ef41d32db10b79fe7b6cfa42b8cd019ca8415 (diff)
downloadgitlab-ce-a88f0a1fd8fc150432729f525f1c2cecde93301a.tar.gz
add wiki_page helper to url_builder
Diffstat (limited to 'app/services/wiki_pages')
-rw-r--r--app/services/wiki_pages/base_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/wiki_pages/base_service.rb b/app/services/wiki_pages/base_service.rb
index e4c0506e20c..9ab9d187413 100644
--- a/app/services/wiki_pages/base_service.rb
+++ b/app/services/wiki_pages/base_service.rb
@@ -10,7 +10,8 @@ module WikiPages
# DEPRECATED
repository: @project.hook_attrs.slice(:name, :url, :description, :homepage)
}
- page_url = "#{Gitlab.config.gitlab.url}#{@project.wiki.wiki_base_path}/#{page.slug}"
+
+ page_url = Gitlab::UrlBuilder.new(:wiki_page).build(page)
hook_data[:object_attributes].merge!(url: page_url, action: action)
hook_data
end