devour-client icon indicating copy to clipboard operation
devour-client copied to clipboard

trailing slash when path is empty

Open x-yuri opened this issue 6 years ago • 2 comments

There's no way to not have a slash when path is empty,

return `${this.apiUrl}/${path}${slash}`

x-yuri avatar Sep 13 '18 21:09 x-yuri

@x-yuri What would be the use case where path would be empty?

Auspicus avatar Jul 14 '19 14:07 Auspicus

@Auspicus If I could remember... The only thing I can think of is if I can be sure that trailing slash is never added, I can do this.urlFor() + '/something'.

x-yuri avatar Jul 15 '19 08:07 x-yuri