mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:57:29 +08:00
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:
parent
a7adf30357
commit
3a5080b469
7
app/assets/javascripts/discourse/app/adapters/tag.js
Normal file
7
app/assets/javascripts/discourse/app/adapters/tag.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
import RESTAdapter from "discourse/adapters/rest";
|
||||
|
||||
export default RESTAdapter.extend({
|
||||
pathFor(store, type, id) {
|
||||
return id ? `/tag/${id}` : `/tags`;
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue
Block a user