Skip to content

[Bug]: URL Segments getting encoded, with seemingly no way to toggle this #2002

@phinett

Description

@phinett

Describe the bug 🐞

s there any way to stop Refit url encoding my URL segments, i'm using a Zoho API and it doesn't like it when it gets encoded.
Example:

[Post("/{prevCalendarId}/events/{**eventId}?destinationcaluid={destinationCalendarId}")]
    Task<CalendarEvent> MoveEventToNewCalendar(string prevCalendarId, 
       string eventId, string destinationCalendarId);

The eventId is passed as something like 0000121312312313@zoho.com, but the @ symbol is being encoded, to something like this:

/api/v1/calendars/9000000001ea4a9287a548f28ca330b0/events/3bf00000000488fda0ec154ee%40zoho.com?destinationcaluid=10e03c34110f402dbf8368e500asdas0

I have seen various options to stop it encoding Query strings, but not the actual URL segments like above.

Step to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Reproduction repository

https://github.com/reactiveui/refit

Expected behavior

This should happen...

Screenshots 🖼️

No response

IDE

No response

Operating system

No response

Version

No response

Device

No response

Refit Version

No response

Additional information ℹ️

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions