-
Notifications
You must be signed in to change notification settings - Fork 2
Fix path #46
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
Fix path #46
Conversation
|
@saltanovas What was the actual issue here? As far as I know we do not access static files from kevin-jvm and do not do any path concatenation. Paths are all specified with a leading slash and no trailing slash |
|
I would also think of a more client-wide solution, one small oversee and path can be propagated wrongly, either adding a plugin or maybe defaultRequest with custom UrlBuilder implementation, then this specific configuration would be project-wide |
|
The reason why I haven't installed the I will give a try @stosik second suggestion |
|
@saltanovas I updated the version of the kevin-jvm on whitelabel demo app the previous week and I found the issue. I just tested the app locally using your current fix and it works as expected. Just a confirmation that the current PR fixes the issue. |
|
could we just remove leading slashes from all the paths in |
|
I would choose what @grantas33 propose 😄 because after testing things,
|
Starting with Ktor 2.x, leading and trailing slashes are extremely important:
There is
io.ktor.http.appendPathSegmentsextension method, but it usessegments.flatMap { it.split('/') }under the hood instead, which would add two slashes then