-
Notifications
You must be signed in to change notification settings - Fork 475
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
Tricky to construct a path with trailing slash #106
Comments
Yeah, I'm not sure I'm happy with |
No, I won’t have time to do anything about this for a few days at least. For the time being I’m working around the problem by doing this for the last segment: .segment("foo/"); which is pretty horrible :) |
… my eyes! |
if this fixes your problem, I'd release a new version tonight/tomorrow… |
Yep, that fixes it. Thanks! |
Given a URI like this:
it’s difficult to programmatically append a trailing slash.
I thought this might work, but it doesn’t:
This is annoying when you’re constructing a path using successive calls to
.segment()
or.segmentCoded()
:I’m not sure of the best way to solve this problem, but it seems like
segment("")
would make sense as a way to add a trailing slash to an existing URI.After all, it would be consistent with the behaviour of the
.segment()
getter:The text was updated successfully, but these errors were encountered: