Skip to content

Commit 448c5d2

Browse files
authored
Merge pull request #6 from metalabdesign/format-remove-path
Allow param interpolation in removePath.
2 parents 039f40a + f35002f commit 448c5d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default (formatPattern) => {
9191
...typeof relocation === 'string' ? {type: relocation} : relocation,
9292

9393
removePath: relocation.removePath !== undefined ?
94-
relocation.removePath :
94+
finalFormatPattern(relocation.removePath, params) :
9595
getFormattedPathName(i - 1),
9696
});
9797
}

0 commit comments

Comments
 (0)