FIX: Absolute path for directory-columns.json (#13488)

This commit is contained in:
Mark VanLandingham 2021-06-22 19:28:58 -05:00 committed by GitHub
parent fc0da499f8
commit 75afd50cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export default DiscourseRoute.extend({
}, },
model(params) { model(params) {
return ajax("directory-columns.json") return ajax("/directory-columns.json")
.then((response) => { .then((response) => {
params.order = params.order || response.directory_columns[0].name; params.order = params.order || response.directory_columns[0].name;
return { params, columns: response.directory_columns }; return { params, columns: response.directory_columns };