FIX: Renaming and deleting tags (#11169)

The REST adapter generates paths with the /tags/ prefix indescriminately,
but individual tag paths have been moved under the /tag/ prefix to allow
tags with names that would otherwise cause ambiguity like c.
This commit is contained in:
Daniel Waterworth
2020-11-10 10:57:25 +00:00
committed by GitHub
parent a7adf30357
commit 3a5080b469

View File

@@ -0,0 +1,7 @@
import RESTAdapter from "discourse/adapters/rest";
export default RESTAdapter.extend({
pathFor(store, type, id) {
return id ? `/tag/${id}` : `/tags`;
},
});