Quite a number of questions in this forum deal with the problem when the restriction $p' : A \stackrel{p}{\to} p(A)$ of a quotient map $p : X \to Y$ to a subspace $A \subset X$ is again a quotient map. An example is The restriction of a quotient map to a saturated closed set is a quotient map.
Here the question is
Given a quotient map $p : X \to Y$ and a subspace $A \subset X$. When is the restriction $p \mid_A : A \to Y$ a quotient map?
This question occurs in hidden form in the context of projective spaces. Let $\mathbb K = \mathbb R, \mathbb C$. Then $$\mathbb{KP}^n = (\mathbb K^{n+1} \setminus \{0\})/ \sim$$ where the equivalence relation $\sim$ is defined by $x' \sim x$ if $x' = \lambda x$ for some $\lambda \in \mathbb K \setminus \{0\}$. It is well-known that an alternative representation of $\mathbb{KP}^n$ is $$\mathbb{KP}^n = S(\mathbb K^{n+1}) / \sim$$ where $S(\mathbb K^{n+1})$ denotes the unit sphere in $\mathbb K^{n+1}$ (i.e $S(\mathbb R^{n+1}) = S^n$, $S(\mathbb C^{n+1}) = S^{2n+1}$). This shows in particular that $\mathbb{PK}^n$ is compact. Note that for $\mathbb K = \mathbb R$ the relation $\sim$ restricts to $S^n$ via $x' \sim x$ if $x' = \pm x$ and for $\mathbb K = \mathbb C$ restricts to $S^{2n+1}$ via $x' \sim x$ if $x' = \lambda x$ for some $\lambda \in S^1 \subset \mathbb C$.
The above alternative representation of $\mathbb{KP}^n$ is an obvious consequence of the following fact:
Given a map $p : X \to Y$ and a retraction $r : X \to A$ onto a subspace $A \subset X$ such that $p \mid_A \circ \phantom{.} r = p$. Then $p$ is a quotient map if and only if $p \mid_A : A \to Y$ is a quotient map.
The question is to give a proof of this fact to obtain a standard reference in this forum.
Note that $S(\mathbb K^{n+1})$ is a retract of $\mathbb K^{n+1} \setminus \{0\}$; simply define $r : \mathbb K^{n+1} \setminus \{0\} \to S(\mathbb K^{n+1}), r(x) = \dfrac{x}{\lVert x \rVert}$ and note that the quotient map $\pi : \mathbb K^{n+1} \setminus \{0\} \to \mathbb{KP}^n$ has the property $\pi \mid_{S(\mathbb K^{n+1})} \circ \phantom{.} r = \pi$.