Skip to content

Don't reactive "isActivePath" when change link (menu link)? #53

Description

@thearabbit

I base on group router

// Group
let MLMRoutes = FlowRouter.group({
    prefix: '/mlm',
    title: "MLMUPC",
    titlePrefix: 'MLMUPC > ',
});

// Home
import '../imports/pages/home.js';
MLMRoutes.route('/home', {
    name: 'mlm.home',
    title: 'Home',
    action(param, queryParam){
        Layout.main('MLM_home');
    }
});

// About
import '../imports/pages/about.js';
MLMRoutes.route('/about', {
    name: 'mlm.about',
    title: 'About',
    action(param, queryParam){
        Layout.main('MLM_about');
    }
});

I tried to use {{isActivePath path='/mlm/home'}}, but it don't reactive when I change the link.

Hom | About

-----------
// home.html
Active Path: {{isActivePath path='/mlm/home'}}

// about.html
Active Path: {{isActivePath path='/mlm/about'}}
  • It work for the first time, It show active string on Home
  • And then I try to change route by click About, It don't show active string
    Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions