Skip to content

Weird behavior with content-less routes #283

Description

@espoal

Hello everybody!

Great package!

I noticed a weird behavior. I have a content-less route:

FlowRouter.route('/', {
    name: 'home',
    action: function() {
        BlazeLayout.render('mainLayout');
    }
});

Anyhow when I try

FlowRouter.go('home');

It returns errors about content being null unless I edit my original route:

        BlazeLayout.render('mainLayout', {content: ''});

I blame this on javascript for being so forgiving in the data it let pass through. Damn I never thought I would miss strong typed languages.

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