mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Convert server side paths to use /u/
This commit is contained in:
parent
45a257815a
commit
14410b71fb
38 changed files with 82 additions and 80 deletions
|
@ -5,6 +5,7 @@ import { popupAjaxError } from 'discourse/lib/ajax-error';
|
|||
import ApiKey from 'admin/models/api-key';
|
||||
import Group from 'discourse/models/group';
|
||||
import TL3Requirements from 'admin/models/tl3-requirements';
|
||||
import { userPath } from 'discourse/lib/url';
|
||||
|
||||
const AdminUser = Discourse.User.extend({
|
||||
|
||||
|
@ -346,7 +347,7 @@ const AdminUser = Discourse.User.extend({
|
|||
},
|
||||
|
||||
sendActivationEmail() {
|
||||
return ajax('/users/action/send_activation_email', {
|
||||
return ajax(userPath('action/send_activation_email'), {
|
||||
type: 'POST',
|
||||
data: { username: this.get('username') }
|
||||
}).then(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue