Skip to content

issue: urlbuilder requires scheme #4

Description

@a-h

In my first use of the URL builder, I wanted to create a URL within a site and add a query string. I don't care about the scheme or host.

e.g. I wanted to do something like this:

<div hx-ext="sse" sse-connect={ urlbuilder.Path("/chat/response").Query("input", text) } sse-swap="message">

However, the API forces you to have a scheme and host.

Maybe the API should have something like urlbuilder.Path, urlbuilder.Scheme etc. which returns a builder? Not sure, but the ergonomics didn't quite work out.

@garrettladley - ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions