How do I get AI to take a 'sub optimal', longer path?

As far as I know there is no easy way. If you wish to change how an AI finds a path, you would have to make a custom path following component and override some of the functions in there.