Skip to content

Support templated long URLs (inject forwarded path/query into arbitrary positions) #2638

Description

@julioz

Summary

There is no way to inject the forwarded value into an arbitrary position of the long URL — in particular, into the middle of an existing query-param value.

I'd like to propose optional templated long URLs, closely modeled on how Tailscale's golink handles this.

Use case

Consider a destination where a variable segment must live inside an existing query-param value, alongside fixed content:

https://example.com/search?q=fixed-prefix+SOMETHING

I want a single short URL such that visiting:

https://exam.ple/s/whatever-the-user-typed

redirects to:

https://example.com/search?q=fixed-prefix+whatever-the-user-typed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions