Remove patterns from generated routes if the parameter is not given
closes #265