Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Path" not change in loop of FlowRouter.go() #744

Open
beobungbu opened this issue Aug 25, 2021 · 2 comments
Open

"Path" not change in loop of FlowRouter.go() #744

beobungbu opened this issue Aug 25, 2021 · 2 comments

Comments

@beobungbu
Copy link

let's say I have 2 Routes:

FlowRouter.route('/konnichiha', {
    name: 'konnichiha',
    triggersEnter(){
        FlowRouter.go('sayonara');
    },
});

and

FlowRouter.route('/sayonara', {
    name: 'sayonara',
    action(){
        BlazeLayout.render('main', { center: 'home' });
    },
});

at somewhere in the Application, when the user hit "konnichiha" button, then it's invoked: FlowRouter.go('konnichiha');
then the URL appears on the browser turn to https://domain.com/konnichiha, then its content changes to layout of "main" template,
but the URL path still appears as https://domain.com/konnichiha, I think it should be https://domain.com/sayonara instead.
I'm looking on the readme but have not found any way to change the path manually without reloading the page.
I think this is a bug of FlowRouter.

@beobungbu
Copy link
Author

I also tried to change from :

FlowRouter.route('/konnichiha', {
    name: 'konnichiha',
    triggersEnter(){
        FlowRouter.go('sayonara');
    },
});

to

FlowRouter.route('/konnichiha', {
    name: 'konnichiha',
    action(){
        FlowRouter.go('sayonara');
    },
});

and:

FlowRouter.route('/konnichiha', {
    name: 'konnichiha',
    triggersExit(){
        FlowRouter.go('sayonara');
    },
});

but no luck.

@dr-dimitru
Copy link

@beobungbu can you reproduce it using ostrio:flow-router-extra?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants