Skip to content

setServerUrl produces URLs with double slashes when URL already ends with one #842

Description

@janseeger

works:

val url = "https://some.url"
setServer(url) // https://some.url/track

broken:

val url = "https://some.url/"
setServer(url) // https://some.url//track

This makes writing rewrite rules painful. Mixpanel should not just blindly append Strings but produces well-formed URLs.

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