summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorLuke Duncalfe <lduncalfe@eml.cc>2019-08-01 17:54:52 +1200
committerLuke Duncalfe <lduncalfe@eml.cc>2019-08-21 09:33:12 +1200
commit93a618f0e54b5ae28f7525b8861763130c692415 (patch)
tree366c54878db236f4011dc26de39b9c5c0c34d382 /config/routes
parent80c57bf6d13d6025a9568afb9cca36c279fac593 (diff)
downloadgitlab-ce-93a618f0e54b5ae28f7525b8861763130c692415.tar.gz
New wiki page redirects user to random slug46299-wiki-page-creation
Previously we asked a user to enter a new slug before taking them to the Create Page page. As a UX improvement, we now take them to a randomly generated URI so they can begin creating their new page. https://gitlab.com/gitlab-org/gitlab-ce/issues/46299
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/wiki.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes/wiki.rb b/config/routes/wiki.rb
index 2ca52e55fca..d439c99270e 100644
--- a/config/routes/wiki.rb
+++ b/config/routes/wiki.rb
@@ -2,6 +2,7 @@ scope(controller: :wikis) do
scope(path: 'wikis', as: :wikis) do
get :git_access
get :pages
+ get :new
get '/', to: redirect('%{namespace_id}/%{project_id}/wikis/home')
post '/', to: 'wikis#create'
end