Opened this issue 6 years ago · 2 comments
There's no way to not have a slash when path is empty,
path
return `${this.apiUrl}/${path}${slash}`
@x-yuri What would be the use case where path would be empty?
@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'.
this.urlFor() + '/something'