[Fix]: Share-link encoding(Duplicate fullscreen)#149
Open
Dushyantcoder07 wants to merge 1 commit into
Open
Conversation
Contributor
|
@Dushyantcoder07 is attempting to deploy a commit to the debmallya-03's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ Deploy Preview for webifynet ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
|
Please review the changes @Debmallya-03 or Sir if possible please give Gssoc label's to my pr #90 . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the share-link encoding logic in the main editor page.
It replaces the deprecated escape and unescape functions with UTF-8 safe TextEncoder and TextDecoder usage.
That prevents Unicode characters from getting corrupted when a project is copied into a shareable link.
The change keeps the existing editor workflow intact while making encoding and decoding more reliable.
It also reduces the risk of broken shared state when users include non-ASCII text in their HTML, CSS, or JavaScript.
The update is limited to the page logic and does not change the UI behavior.
The branch was created specifically for this issue and the fix was validated after editing.
This improves stability for users who share or reopen projects containing international characters.
It is a small but important correctness fix in the main editor flow.