# Detailed warnings

**URL:** <https://discourse.gohugo.io/t/detailed-warnings/22107>\
**Category:** support\
**Created:** [December 2, 2019, 8:26am UTC](https://discourse.gohugo.io/t/detailed-warnings/22107 "2019-12-02T08:26:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![b\_rad](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@b\_rad](https://discourse.gohugo.io/u/b_rad)\
**Post date:** [December 2, 2019, 8:26am UTC](https://discourse.gohugo.io/t/detailed-warnings/22107/1 "2019-12-02T08:26:27Z")

</div>

I’ve seen this mentioned a few times, but after recent changes to Hugo I am getting warnings due to Page.URL being deprecated, as well as Page.TranslationBaseName. I’ve used a lot of these in the past, but it is hard to know which ones I need to correct. Is there a way to get Hugo to show the filenames and possible line numbers that are causing these messages?

---

<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:** [December 2, 2019, 8:29am UTC](https://discourse.gohugo.io/t/detailed-warnings/22107/2 "2019-12-02T08:29:08Z")

</div>

You can use a code editor to search your project and get all needed info.

---

<div class="post-metadata">

**Author:** ![b\_rad](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@b\_rad](https://discourse.gohugo.io/u/b_rad)\
**Post date:** [December 2, 2019, 9:57am UTC](https://discourse.gohugo.io/t/detailed-warnings/22107/3 "2019-12-02T09:57:51Z")

</div>

This I know, but I don’t think .URL is exclusive to Pages.

---

<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:** [December 2, 2019, 10:12am UTC](https://discourse.gohugo.io/t/detailed-warnings/22107/4 "2019-12-02T10:12:50Z")

</div>

`.URL` is also present within [the context of a menu template](https://gohugo.io/templates/menu-templates/) and within [the context of a pagination template](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/pagination.html).

The use of `.URL` within the context of `.Page` is deprecated.

For example within the context of `range .Pages` etc. then you need to use `.Permalink` or `.RelPermalink` and remove `.URL`

---

<div class="post-metadata">

**Author:** ![b\_rad](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@b\_rad](https://discourse.gohugo.io/u/b_rad)\
**Post date:** [December 2, 2019, 6:13pm UTC](https://discourse.gohugo.io/t/detailed-warnings/22107/5 "2019-12-02T18:13:12Z")

</div>

I get it and is probably what I’m going to have to do for now, but is it possible to show detailed warnings about what layouts is causing the errors or would this be a feature request?

---

<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:** [December 2, 2019, 6:36pm UTC](https://discourse.gohugo.io/t/detailed-warnings/22107/6 "2019-12-02T18:36:53Z")

</div>

> [@b\_rad](#):
>
> would this be a feature request?

Yes it would be. You can make a proposal here: [Issues · gohugoio/hugo · GitHub](https://github.com/gohugoio/hugo/issues)

---

<div class="post-metadata">

**Author:** ![case](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/case/32/11799_2.png) [@case](https://discourse.gohugo.io/u/case)\
**Post date:** [July 13, 2020, 2:49am UTC](https://discourse.gohugo.io/t/detailed-warnings/22107/7 "2020-07-13T02:49:16Z")

</div>

@b-rad I ran into this recently as well, and was hoping for filename and/or line-number printed out in the warning message. Did you end up filing this by any chance?

---

<div class="post-metadata">

**Author:** ![case](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/case/32/11799_2.png) [@case](https://discourse.gohugo.io/u/case)\
**Post date:** [July 13, 2020, 7:28pm UTC](https://discourse.gohugo.io/t/detailed-warnings/22107/8 "2020-07-13T19:28:01Z")

</div>

I filed this, hopefully they will steer us in the right direction!

> <https://github.com/gohugoio/hugo/issues/7480>
>
> Per the "Page.URL is deprecated" warnings (related to #4117), I'm wondering if you'd consider including the filename and/or line number that...
