Skip to content

Commit f35002f

Browse files
author
Neal Granger
committed
Allow param interpolation in removePath.
Allow custom `removePath` values to contain route params. This behavior matches the automatic `removePath` creation logic.
1 parent 4824fa5 commit f35002f

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
@@ -92,7 +92,7 @@ export default (formatPattern) => {
9292
...typeof relocation === 'string' ? {type: relocation} : relocation,
9393

9494
removePath: relocation.removePath !== undefined ?
95-
relocation.removePath :
95+
finalFormatPattern(relocation.removePath, params) :
9696
getFormattedPathName(i - 1),
9797
});
9898
}

0 commit comments

Comments
 (0)