summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Eipert <git@leipert.io>2018-04-06 10:48:20 +0200
committerLukas Eipert <git@leipert.io>2018-04-06 10:48:20 +0200
commit4b1e1065c01c5111352c024c2989b3205957a954 (patch)
tree6065e40c8493d692f7bcaf1ebf4c8850df51ad47
parent5fa4a7f7aba861047043b4e0e3608f8eaf89a12d (diff)
downloadgitlab-ce-41758-after-changing-username-url-still-redirects-to-old-route.tar.gz
-rw-r--r--app/views/profiles/accounts/show.html.haml2
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