When I was plaing around with [this answer](https://tex.stackexchange.com/questions/276665/triangles-inside-triangles-fractals-to-an-arbitrary-depth/276730#276730), I came across some unexpected behaviour when using the options `sloped` and `below` together. This code

```
\documentclass[tikz, border=2mm]{standalone}

\begin{document}

\begin{tikzpicture}
    \foreach \C in {1,...,5}
    { \draw[-latex] (\C*72-72:5) -- (\C*72:5) node[sloped, below, pos=0.66] {XYZ};
    }
\end{tikzpicture}

\end{document}

```

produces a pentagram with nodes placed on all the sides, where the text is automatically rotated to never be upside down:

[![enter image description here](https://i.stack.imgur.com/viqqQ.png)](https://i.stack.imgur.com/viqqQ.png)

However, the two nodes with the red frame are not only rotated to be easily readable, but they now are also on the "wrong" side of the path. If I additionaly use the `allow upside down` option like this

```
\documentclass[tikz, border=2mm]{standalone}

\begin{document}

\begin{tikzpicture}
    \foreach \C in {1,...,5}
    {   \draw[-latex] (\C*72-72:5) -- (\C*72:5) node[sloped, below, pos=0.66, allow upside down] {XYZ};
    }
\end{tikzpicture}

\end{document}

```

then the nodes are on the "correct" side, but (as expected) upside down.

[![enter image description here](https://i.stack.imgur.com/YKA74.png)](https://i.stack.imgur.com/YKA74.png)

As I don't want to put `above` or `below` manually, is there a way to place the nodes upside and outside? Or is there probably a better choice than `below`, like some kind of key specifying "place the node on the right side when looking along the path"?