Add ability for extension to handle prefix instead of just normal route.