# The deprecation warning poped for the commented code

**URL:** <https://discourse.gohugo.io/t/the-deprecation-warning-poped-for-the-commented-code/18584>\
**Category:** support\
**Created:** [May 8, 2019, 10:13am UTC](https://discourse.gohugo.io/t/the-deprecation-warning-poped-for-the-commented-code/18584 "2019-05-08T10:13:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wzdlc1996](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/wzdlc1996/32/8642_2.png) [@wzdlc1996](https://discourse.gohugo.io/u/wzdlc1996)\
**Post date:** [May 8, 2019, 10:13am UTC](https://discourse.gohugo.io/t/the-deprecation-warning-poped-for-the-commented-code/18584/1 "2019-05-08T10:13:25Z")

</div>

Now I am using hugo of version 0.55.3. It shows the .url warning when I build my site like:

```
Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url. 

```

I checked my code and find this is caused by the line of a variable claim.

```
{{ $url := .URL }}

```

I find the warning does not appear anymore if I delete it. However, if I comment it with the `<!-- ... -->` , the warning pops again. So shall we make some modification so that the warning could work better?

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [May 8, 2019, 11:57am UTC](https://discourse.gohugo.io/t/the-deprecation-warning-poped-for-the-commented-code/18584/2 "2019-05-08T11:57:23Z")

</div>

> [@wzdlc1996](#):
>
> I find the warning does not appear anymore if I delete it. However, if I comment it with the `<!-- ... -->` , the warning pops again. So shall we make some modification so that the warning could work better?

The above is a HTML comment. Go templates need a different type of comment i.e.  
`{{/* <--- everything in between here will be ignored ---> */}}`

Have a look at the Docs: [Templating | Hugo](https://gohugo.io/templates/introduction/#go-templates-comments)

> [@wzdlc1996](#):
>
> So shall we make some modification so that the warning could work better?

The warning is fine…
