Skip to content

Commit

Permalink
fix: Forward options argument to parent router.generate
Browse files Browse the repository at this point in the history
Closes #606
  • Loading branch information
davismj committed Jul 16, 2018
1 parent 50897db commit 78aad40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class Router {
generate(name: string, params?: any, options?: any = {}): string {
let hasRoute = this._recognizer.hasRoute(name);
if ((!this.isConfigured || !hasRoute) && this.parent) {
return this.parent.generate(name, params);
return this.parent.generate(name, params, options);
}

if (!hasRoute) {
Expand Down

0 comments on commit 78aad40

Please sign in to comment.