[Solved] FlowRouter showing always '/' page when using ?_escaped_fragment_=


#1

Hello!

UPD: Problem solved. Was my mistake (path position when using #! and when not using them).

I’m using FlowRouter and ongoworks:spiderable in my project.
When i add ?_escaped_fragment_= to root url, it renders html just fine. But if i use ?_escaped_fragment_= on other urls it still renders html for root url.
What am i doing wrong?

routes:

FlowRouter.route('/', {
    action(params, queryParams) {
            BlazeLayout.render('mainLayout', {
                main: 'home'
            });
        },
        triggersEnter: [function(context, redirect, stop) {
            if (Meteor.isClient) {
                Session.set('headerBanner', {
                    by: 'default'
                });
            }
        }],
        name: 'home'
});

FlowRouter.route('/pages-list/:page*', {
    action(params, queryParams) {
        BlazeLayout.render('mainLayout', {
            main: 'pages'
        });
    },
    triggersEnter: [function(context, redirect, stop) {
        if (Meteor.isClient) {
            Session.set('headerBanner', {
                by: 'bySlug',
                slug: FlowRouter.current().path
            });
        }
    }],
    name: 'pagesList'
});