Skip to content

fix: normalize copied full paths across platforms#6101

Open
Kilaparthi-Himanshu wants to merge 1 commit into
modrinth:mainfrom
Kilaparthi-Himanshu:fix/windows-path-separators
Open

fix: normalize copied full paths across platforms#6101
Kilaparthi-Himanshu wants to merge 1 commit into
modrinth:mainfrom
Kilaparthi-Himanshu:fix/windows-path-separators

Conversation

@Kilaparthi-Himanshu
Copy link
Copy Markdown

Fixes #6100

This updates the path generation used by the "Copy full path" and "Open in folder" actions to normalize path separators based on the user's platform.

Previously, Windows users could receive mixed path separators such as:

C:\Users\Void\AppData\Roaming\ModrinthApp\profiles\Instance/downloads

This change preserves forward slashes on macOS/Linux while normalizing Windows paths to use backslashes consistently.

@modrinth-bot
Copy link
Copy Markdown
Member

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

File paths copied from within the app contain the wrong slash

2 participants