refit icon indicating copy to clipboard operation
refit copied to clipboard

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

Open phinett opened this issue 5 months ago • 0 comments

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 [email protected], 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

phinett avatar Jul 26 '25 09:07 phinett