# .URL warning

**URL:** <https://discourse.gohugo.io/t/url-warning/18385>\
**Category:** support\
**Created:** [April 28, 2019, 2:23am UTC](https://discourse.gohugo.io/t/url-warning/18385 "2019-04-28T02:23:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranceh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ranceh/32/8559_2.png) [@ranceh](https://discourse.gohugo.io/u/ranceh)\
**Post date:** [April 28, 2019, 2:23am UTC](https://discourse.gohugo.io/t/url-warning/18385/1 "2019-04-28T02:23:21Z")

</div>

My Hugo site had been running fine for awhile till a recent upgrade and then Hugo 0.55 began complaining about some things that have been deprecated.

I solved all of them but one

This one:  
WARN 2019/04/27 21:02:17 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’m using .URL in two layout/partial files and don’t understand what I should do about this.

In my menu I’m using .URL and according to the error message I should be able to change it to .Params.url. Well this change goes from warnings to fatal errors like this:

execute of template failed: template: partials/menu.html:4:34: executing “partials/menu.html” at \<.Params.url\>: can’t evaluate field Params in type \*navigation.MenuEntry

Permalink and RelPermalink also caused failures.

After checking the source of the generated html I see that the .URL was generating relative links. Which makes me think I want either .Params.url or RelPermalink.

Since I can’t make either seem to work for me the way I want them to, I don’t understand what to do about the deprecation of what works.

Help/Advice appreciated.

---

<div class="post-metadata">

**Author:** ![regis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/regis/32/4958_2.png) [@regis](https://discourse.gohugo.io/u/regis)\
**Post date:** [April 28, 2019, 2:48am UTC](https://discourse.gohugo.io/t/url-warning/18385/2 "2019-04-28T02:48:20Z")

</div>

The warning does not concern menus, I don’t think so.

For pages you should now use `.Permalink` or `.RelPermalink`. The suggestion to use `.Params.url` is only for users who needed to refer to a `url` key passed in the Front Matter.

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [April 28, 2019, 7:41am UTC](https://discourse.gohugo.io/t/url-warning/18385/3 "2019-04-28T07:41:23Z")

</div>

if you used {{ .URL }} in **range** , change it to {{ .Permalink }}
