Commit 38e57945 authored by Alfredo Sumaran's avatar Alfredo Sumaran

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
parents 142d5abc 886a939b
......@@ -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)
});
......
---
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