Commit 886a939b authored by Phil Hughes's avatar Phil Hughes

Username exists check respects the relative root URL

Closes #25548
parent 278baa5b
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
this.renderState(); this.renderState();
return $.ajax({ return $.ajax({
type: 'GET', type: 'GET',
url: `/users/${username}/exists`, url: `${gon.relative_url_root}/users/${username}/exists`,
dataType: 'json', dataType: 'json',
success: (res) => this.setAvailabilityState(res.exists) success: (res) => this.setAvailabilityState(res.exists)
}); });
......
---
title: Username exists check respects relative root path
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment