Replies: 1 comment 5 replies
-
|
I don't know how the API works in the JavaScript implementation, but in the Rust crates you can disable this feature by turning off isolation of placeholders after spinning up your bundle: let mut bundle = FluentBundle::new(...);
bundle.set_use_isolating(false);I assume there is something similar in the JS libraries. Hopefully this gives you something to go on searching for what you need. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Depending on the answer, it may be worth converting this to an issue as a request for documentation.
I'm using Project Fluent in a very small project, I can even inline my whole messages file here:
This is a plaintext application using fluent.js. I have Unicode Isolation enabled. This leads to a problem as it modifies URLs.
The message I should have a clickable link like this:
Whereas if you click the link in the actual message, you can see the problem:
You'll find GitHub renders them the same. Firefox shows the same URL in the bottom of the browser when hovered too! But when pressed, the bottom example includes the Unicode Isolation characters at the end of the URL. This breaks the URL, making it take the user to a 404.
I can confirm that in the following applications, the top link is fine, but the bottom link is broken:
I believe I can workaround this issue without disabling automatic Unicode Isolation, however all fixes I have in mind are more like hacks. For example:
(whitespace) to the end of the URL.?to the end of the URL, which would push the Unicode Isolation to be treated like a query parameter.(zero-width whitespace), but unfortunately this just becomes part of the URL as well, so that won't work.Does anyone on the team have any insight on how they would go about this?
Thank you for your time!
Beta Was this translation helpful? Give feedback.
All reactions