diff options
author | Luke Duncalfe <lduncalfe@eml.cc> | 2019-08-01 17:54:52 +1200 |
---|---|---|
committer | Luke Duncalfe <lduncalfe@eml.cc> | 2019-08-21 09:33:12 +1200 |
commit | 93a618f0e54b5ae28f7525b8861763130c692415 (patch) | |
tree | 366c54878db236f4011dc26de39b9c5c0c34d382 /config/routes | |
parent | 80c57bf6d13d6025a9568afb9cca36c279fac593 (diff) | |
download | gitlab-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.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 |