Merge branch 'username-exists-root' into 'master'
Username exists check respects the relative root URL ## What does this MR do? The path for checking if the username exists was hardcoded to as a absolute URL which broke in relative path installs. This fixes that by respecting the relative path. ## What are the relevant issue numbers? Closes #25548 See merge request !8092
This commit is contained in:
commit
38e57945e1
2 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,7 @@
|
|||
this.renderState();
|
||||
return $.ajax({
|
||||
type: 'GET',
|
||||
url: `/users/${username}/exists`,
|
||||
url: `${gon.relative_url_root}/users/${username}/exists`,
|
||||
dataType: 'json',
|
||||
success: (res) => this.setAvailabilityState(res.exists)
|
||||
});
|
||||
|
|
4
changelogs/unreleased/username-exists-root.yml
Normal file
4
changelogs/unreleased/username-exists-root.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Username exists check respects relative root path
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in a new issue