Module: Routing::WikiHelper

Included in:
GitlabRoutingHelper, Projects::AutocompleteService
Defined in:
app/helpers/routing/wiki_helper.rb

Instance Method Summary collapse

Instance Method Details

#group_wiki_page_url(wiki_meta, **options) ⇒ Object



17
18
19
# File 'app/helpers/routing/wiki_helper.rb', line 17

def group_wiki_page_url(wiki_meta, **options)
  group_wiki_url(wiki_meta.namespace, wiki_meta.canonical_slug, **options)
end

#project_wiki_page_url(wiki_meta, **options) ⇒ Object



13
14
15
# File 'app/helpers/routing/wiki_helper.rb', line 13

def project_wiki_page_url(wiki_meta, **options)
  project_wiki_url(wiki_meta.project, wiki_meta.canonical_slug, **options)
end

#wiki_page_path(wiki, page, **options) ⇒ Object



9
10
11
# File 'app/helpers/routing/wiki_helper.rb', line 9

def wiki_page_path(wiki, page, **options)
  Gitlab::UrlBuilder.wiki_page_url(wiki, page, only_path: true, **options)
end

#wiki_path(wiki, **options) ⇒ Object



5
6
7
# File 'app/helpers/routing/wiki_helper.rb', line 5

def wiki_path(wiki, **options)
  Gitlab::UrlBuilder.wiki_url(wiki, only_path: true, **options)
end