mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
topic and admin dashboard not retrieving data properly when using prefix
This commit is contained in:
@@ -3,7 +3,7 @@ Discourse.AdminDashboard = Discourse.Model.extend({});
|
||||
Discourse.AdminDashboard.reopenClass({
|
||||
find: function() {
|
||||
var model = Discourse.AdminDashboard.create();
|
||||
return $.ajax("/admin/dashboard", {
|
||||
return $.ajax(Discourse.getURL("/admin/dashboard"), {
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
success: function(json) {
|
||||
@@ -12,4 +12,4 @@ Discourse.AdminDashboard.reopenClass({
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user