Fix incorrect type assignment

The original code was trying to assign a `String`into a `RouterOptions`.