Skip to content

Commit c3ebe59

Browse files
authored
[documentation] Update AMP.navigateTo documentation to note that it does (ampproject#35562)
not support standard URL substitutions.
1 parent 90afe34 commit c3ebe59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spec/amp-actions-and-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ actions that apply to the whole document.
712712
<tr>
713713
<td><code>navigateTo(url=STRING, target=STRING, opener=BOOLEAN)</code></td>
714714
<td>
715-
<p>Navigates current window to given URL, to the optional specified target if given (currenly only supporting <code>_top</code> and <code>_blank </code>). The optional <code>opener</code> parameter can be specified when using a target of <code>_blank</code> to allow the newly opened page to access <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/opener"><code>window.opener</code></a>. Supports <a href="https://github.com/ampproject/amphtml/blob/main/docs/spec/amp-var-substitutions.md">standard URL substitutions</a>.</p>
715+
<p>Navigates current window to given URL, to the optional specified target if given (currenly only supporting <code>_top</code> and <code>_blank </code>). The optional <code>opener</code> parameter can be specified when using a target of <code>_blank</code> to allow the newly opened page to access <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/opener"><code>window.opener</code></a>.</p>
716716
<p><strong>Caveat:</strong> Using normal <code>&lt;a&gt;</code> links is recommended wherever possible since <code>AMP.navigateTo</code> is not recognized by web crawlers.</p>
717717
</td>
718718
</tr>

0 commit comments

Comments
 (0)