Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trailing slash when path is empty #159

Open
x-yuri opened this issue Sep 13, 2018 · 2 comments
Open

trailing slash when path is empty #159

x-yuri opened this issue Sep 13, 2018 · 2 comments

Comments

@x-yuri
Copy link

x-yuri commented Sep 13, 2018

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

return `${this.apiUrl}/${path}${slash}`
@Auspicus
Copy link
Collaborator

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

@x-yuri
Copy link
Author

x-yuri commented Jul 15, 2019

@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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants