Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Component used: Navigation for Compose
Version used: 2.4.1
Devices/Android versions reproduced on: Pixel 3 device and API 31 Emulator
When trying to pass URL-encoded string as a value to some destination, everything works correctly for the most characters I've tested:
?
,/
,=
and others. But when it comes to the newline character\n
, it's URL-encoded representation%0A
causes the navigation library to crash:It only happens when the argument is optional.
Attaching the sample project "newline-navigation-issue.zip" that displays the issue.