Skip to content

Show filenames and line numbers in deprecation warnings #7480

@case

Description

@case

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 is triggering the warning?

I'm new to Hugo, so please forgive my ignorance here. :) I'm helping a friend with a few small tasks for his Hugo-powered site, and have checked all the .URL instances I could find by doing a global search in VS Code. All appear to be menu- and navigation-related, not Page context.

I've tried the various tips in the forum posts that discuss the Page.URL deprecation, but none have worked. I've also looked through closed Issues and PRs here, in case this has been discussed already, but I didn't find this mentioned.

A few people have asked in the forum about filenames and line numbers, to help with debugging this:

Thanks in advance for considering, and I appreciate your work on Hugo and with its community!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions