Fix router breaks route strip_extension

Fix #1731