Skip to content

fix: web URL for file contains backwards slashes on windows

Tomas Vik requested to merge 387-windows-path-fix into main

The logic that replaces windows \ with POSIX / uses String.prototype.replace. When the first argument to this function is a string, the replace method only replaces the first occurrence.

This resulted in us generating URLs with only the first slash replaced, e.g. https://gitlab.services.xxx.fi/xxx/team/adapter/blob/main/src/StreamAdapter\Services\StreamingApiClient.cs#L116-149

Related to #387 (closed)

Edited by Tomas Vik

Merge request reports