Support for both /users/ and /u/ paths

This commit is contained in:
Robin Ward
2017-03-27 15:34:54 -04:00
parent 99abbc2e2d
commit 6b976433c9
10 changed files with 119 additions and 34 deletions

View File

@ -8,6 +8,7 @@ import { resetPluginApi } from 'discourse/lib/plugin-api';
import { clearCache as clearOutletCache, resetExtraClasses } from 'discourse/lib/plugin-connectors';
import { clearHTMLCache } from 'discourse/helpers/custom-html';
import { flushMap } from 'discourse/models/store';
import { clearRewrites } from 'discourse/lib/url';
function currentUser() {
@ -88,6 +89,7 @@ function acceptance(name, options) {
clearOutletCache();
clearHTMLCache();
resetPluginApi();
clearRewrites();
Discourse.reset();
}
});