Skip to content
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

URL Parameter Encoding Issue #3299

Open
helloagain-dev opened this issue Feb 21, 2025 · 0 comments
Open

URL Parameter Encoding Issue #3299

helloagain-dev opened this issue Feb 21, 2025 · 0 comments
Labels

Comments

@helloagain-dev
Copy link

Summary

Why does the Toast UI Editor replace the & symbol with & when inserting a link, rendering subsequent URL parameters unusable?

Version

build/bundle: @toast-ui/[email protected]

Additional context

When inserting a link with multiple URL parameters separated by the & symbol (e.g., https://example.com/page?param1=value1&param2=value2), the Toast UI Editor replaces the & with & in the generated HTML. This effectively breaks the link after the first parameter, as the browser interprets & as a literal ampersand, not a parameter separator.

For example, if I insert the link https://example.com/page?param1=value1&param2=value2, the editor's HTML output becomes something like:
<a href="https://example.com/page?param1=value1&amp;param2=value2">Link Text</a>

Is this the intended behavior? If so, what is the recommended way to insert links with multiple URL parameters using the Toast UI Editor? If not, is there a configuration option or workaround to prevent this encoding? This is critical for our application as we heavily rely on URL parameters for tracking and filtering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant