Skip to content

Can there be an option to generate URLs with revision numbers by default? #1736

@jamesderlin

Description

@jamesderlin

I've seen a lot of people post URLs to our internal OpenGrok server via email, bug comments, commit descriptions, etc. that refer to particular lines of code. It's very convenient, but the usage is problematic because those URLs don't have long-term persistence. That is, most of the time the URLs look like:

https://opengrok/source/xref/PATH/FILE#192

which refers to line 192 of whatever the latest version of FILE that OpenGrok has indexed. If that file changes, the URL might not longer be valid. It'd be better to use URLs like:

https://opengrok/source/xref/PATH/FILE?r=186#192

to refer to a specific revision. Can there be an option to make OpenGrok search result links always explicitly specify the revision number?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions