itch icon indicating copy to clipboard operation
itch copied to clipboard

:bug: Remove slash duplication in user profile URLs

Open botamochi0x12 opened this issue 9 months ago • 5 comments

Summary

Fixes slash duplication in user profile URLs.

https://itch.io/profile/botamochi0x12

Cause & Impact

The bug arises from a double slash in the path, resulting in URLs like https://itch.io//profile/the-user-name. The constant originalItchio includes the trailing slash.

image -- from itchio/itch/issues/2975

Considerations

As mentioned in the issue #2975, other paths may also be affected. Introducing a package to construct URLs from bare strings could address this issue more comprehensively.

botamochi0x12 avatar May 15 '24 14:05 botamochi0x12