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:
Alfredo Sumaran 2016-12-14 23:27:05 +00:00
commit 38e57945e1
2 changed files with 5 additions and 1 deletions

View file

@ -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)
});

View file

@ -0,0 +1,4 @@
---
title: Username exists check respects relative root path
merge_request:
author: