aboutsummaryrefslogtreecommitdiff
path: root/client/js/controllers/help_controller.js
diff options
context:
space:
mode:
authorrr-2017-01-20 21:51:04 +0100
committerrr-2017-01-21 00:13:35 +0100
commit1acceb941d84775cdeb0019bdfbdd63e9e125982 (patch)
treebe63eb2e886763f822af765a0d4214645fec55f8 /client/js/controllers/help_controller.js
parent6714f05b49f314fe27e977b5555cb6c6cd6b1e17 (diff)
client: refactor linking and routing
Print all links through new uri.js component Refactor the router to use more predictable parsing Fix linking to entities with weird names (that contain slashes, + etc.)
Diffstat (limited to 'client/js/controllers/help_controller.js')
-rw-r--r--client/js/controllers/help_controller.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/js/controllers/help_controller.js b/client/js/controllers/help_controller.js
index 2010176..8e65346 100644
--- a/client/js/controllers/help_controller.js
+++ b/client/js/controllers/help_controller.js
@@ -12,13 +12,13 @@ class HelpController {
}
module.exports = router => {
- router.enter('/help', (ctx, next) => {
+ router.enter(['help'], (ctx, next) => {
new HelpController();
});
- router.enter('/help/:section', (ctx, next) => {
+ router.enter(['help', ':section'], (ctx, next) => {
new HelpController(ctx.parameters.section);
});
- router.enter('/help/:section/:subsection', (ctx, next) => {
+ router.enter(['help', ':section', ':subsection'], (ctx, next) => {
new HelpController(ctx.parameters.section, ctx.parameters.subsection);
});
};

© 2015 - 2026 Jakob L. Kreuze