From b55a3676cf55b718794dae36cacff5910bb5b3af Mon Sep 17 00:00:00 2001 From: Lev Lukomskyi Date: Wed, 20 May 2026 23:28:25 +0300 Subject: [PATCH] Fix wiki method for non-latin and nested slugs Slug can contain non ascii symbols and also "/" symbol making articles nesting, so it should be url encoded --- lib/gitlab/client/wikis.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/client/wikis.rb b/lib/gitlab/client/wikis.rb index 2f617d1d7..985671656 100644 --- a/lib/gitlab/client/wikis.rb +++ b/lib/gitlab/client/wikis.rb @@ -27,7 +27,7 @@ def wikis(project, options = {}) # @param [String] slug The slug (a unique string) of the wiki page # @return [Gitlab::ObjectifiedHash] def wiki(project, slug) - get("/projects/#{url_encode project}/wikis/#{slug}") + get("/projects/#{url_encode project}/wikis/#{url_encode slug}") end # Creates a new wiki page for the given repository with the given title, slug, and content.