How to make a Character go on a straight line?

How to make a Character go on a straight line regardless of whether there is an obstacle in front?

My Character moves using AI move to node. It can already climb up and down the wall. But unfortunately he will not climb the wall if there are stairs available, he uses the stairs instead.

What I want is for the character to use the shortest path if I double click- climb the wall if there is a wall instead of going around to use the stairs.

The AI doesn’t know that the character can climb the wall. Or if it does, it looks like the slower way to the AI.
So it picks the stairs instead.
Therr are ways to indicate where the character can perform an action to get to a normallu inaccessible place, such as by jumping off a wall for example.
I think they show how to do this in one of the Making Game Ready AI live training videos.