diff options
author | Lukas Eipert <git@leipert.io> | 2018-04-06 10:48:20 +0200 |
---|---|---|
committer | Lukas Eipert <git@leipert.io> | 2018-04-06 10:48:20 +0200 |
commit | 4b1e1065c01c5111352c024c2989b3205957a954 (patch) | |
tree | 6065e40c8493d692f7bcaf1ebf4c8850df51ad47 | |
parent | 5fa4a7f7aba861047043b4e0e3608f8eaf89a12d (diff) | |
download | gitlab-ce-41758-after-changing-username-url-still-redirects-to-old-route.tar.gz |
use the right way to construct action url41758-after-changing-username-url-still-redirects-to-old-route
-rw-r--r-- | app/views/profiles/accounts/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml index e339b89ed26..9c95b6281ba 100644 --- a/app/views/profiles/accounts/show.html.haml +++ b/app/views/profiles/accounts/show.html.haml @@ -57,7 +57,7 @@ = succeed '.' do = link_to 'Learn more', help_page_path('user/profile/index', anchor: 'changing-your-username'), target: '_blank' .col-lg-8 - - data = { initial_username: current_user.username, root_url: root_url, action_url: "#{update_username_profile_path}?format=json" } + - data = { initial_username: current_user.username, root_url: root_url, action_url: update_username_profile_path(format: :json) } #update-username{ data: data } %hr |