Skip to content

Commit

Permalink
static/frontend/homepage: fix example search link
Browse files Browse the repository at this point in the history
The query string text is automatically escaped with safehtml. Removed
redundant escape call.

Change-Id: I641dd5f4884aa54d72a47879aaf51d8e3b7d0e95
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/351571
Trust: Jamal Carvalho <[email protected]>
Run-TryBot: Jamal Carvalho <[email protected]>
TryBot-Result: kokoro <[email protected]>
Reviewed-by: Julie Qiu <[email protected]>
  • Loading branch information
jamalc committed Sep 23, 2021
1 parent fc5196d commit d47c5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/frontend/homepage/homepage.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
<li class="go-Carousel-slide" {{if not (eq $.TipIndex $i)}}aria-hidden{{end}}>
<p>
<strong>Tip:</strong> {{.Text}}
<a href="/search?q={{queryescape $v.Example1}}">“{{$v.Example1}}”</a> or
<a href="/search?q={{queryescape $v.Example2}}">“{{$v.Example2}}”</a>.
<a href="/search?q={{$v.Example1}}">“{{$v.Example1}}”</a> or
<a href="/search?q={{$v.Example2}}">“{{$v.Example2}}”</a>.
<a href="/search-help" target="_blank" rel="noopener" class="Homepage-helpLink">
Search help <span><img width="24" height="24" src="/static/shared/icon/launch_gm_grey_24dp.svg" alt=""></span>
</a>
Expand Down

0 comments on commit d47c5d0

Please sign in to comment.