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

Trailing slashes when using multiple optional params #167

Closed
rclai opened this issue Jun 17, 2015 · 2 comments
Closed

Trailing slashes when using multiple optional params #167

rclai opened this issue Jun 17, 2015 · 2 comments

Comments

@rclai
Copy link

rclai commented Jun 17, 2015

When you execute FlowRouter.go('otherRoute') it appends two slashes at the end because the two optional parameters were not found.

FlowRouter.route('/other-route/:param1?/:param2?', {
  name: 'otherRoute',
  action: function () {
    // Do something...
  }
});

FlowRouter.route('/', {
  name: 'home',
  action: function () {
    FlowRouter.go('otherRoute');
  }
});
@arunoda arunoda added the bug label Jun 17, 2015
@rclai
Copy link
Author

rclai commented Jun 17, 2015

My current workaround is simply to do FlowRouter.go('/other-route').

@rclai
Copy link
Author

rclai commented Jun 24, 2015

Yay thanks.

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

3 participants