diff options
author | Luke Duncalfe <lduncalfe@eml.cc> | 2019-08-01 08:54:52 +0300 |
---|---|---|
committer | Luke Duncalfe <lduncalfe@eml.cc> | 2019-08-21 00:33:12 +0300 |
commit | 93a618f0e54b5ae28f7525b8861763130c692415 (patch) | |
tree | 366c54878db236f4011dc26de39b9c5c0c34d382 /config | |
parent | 80c57bf6d13d6025a9568afb9cca36c279fac593 (diff) |
New wiki page redirects user to random slug
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')
-rw-r--r-- | config/routes/wiki.rb | 1 |
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 |