[Cross-posted from MSE]
For a pointed space $X$ and unpointed space $Y$, recall the half-smash product $X\rtimes Y=X\land Y_+=(X\times Y)/(\ast\times Y)$. For unpointed spaces $X,Y$ and a pointed space $Z$, suppose there is a commutative diagram of pointed maps $$\require{AMScd}\begin{CD} S^n\rtimes X @>{F}>> Z\rtimes Y\\ @VVV @VVV\\ S^n @>{f}>> Z \end{CD}.$$ Question: Is this sufficient to conclude that $F$ decomposes as $f\rtimes\phi$ for some map $\phi\colon X\rightarrow Y$ up to homotopy?
This claim of sufficiency is in fact made in Exercise 4.34. of Jeffrey Strom's Modern Classical Homotopy Theory. It features there as a generalization of Lemma 4.32., which claims the result in the case $Z=S^n$. The argument in the book, however, is incorrect for it purports a homotopy $F\simeq f\rtimes\phi$ that is fiberwise over $S^n$, but such a homotopy would imply that the fiberwise maps $F_x\colon X\rightarrow Y$ (whenever defined, i.e. for $x\in S^n$ s.t. $fx\in Z$ is not the basepoint) are all homotopic to another. This is already contradicted by an example like $$F\colon S^1\rtimes S^1\rightarrow S^1\rtimes S^1,\,z\rtimes w\mapsto\begin{cases}z^2\rtimes w,\,\mathrm{Im}(z)\ge0,\\z^2\rtimes\overline{w},\,\mathrm{Im}(z)\le 0.\end{cases}$$ That said, I believe $F\simeq(z\mapsto z^2)\rtimes(z\mapsto\ast)$, so that this is not a counter-example to the actual question.