Open beobungbu opened 2 years ago
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.
@beobungbu can you reproduce it using ostrio:flow-router-extra
?
let's say I have 2 Routes:
and
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.