I went in the direction my friend pointed.

Literal

Friend [subject-が] indicated direction [toward-へ] went.

友達が示した is a relative clause modifying 方向 — 'the direction [that] my friend indicated.' Japanese relative clauses precede the noun they modify, with no relative pronoun. The omitted subject of 行った is recoverable from context.