You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A single quote in the mount prefix makes Vue pages fail to render #645
When the prefix passed to set_mounted_prefix() (or to an integration's mount()) contains a single quote, every page that has a Vue component fails to render with:
ValueError: Vue serialization hooks removed the required Citry runtime asset.
No serialization hook is involved. The runtime is still in the page, but the check that looks for it does not find it, because the two escape the quote differently: the runtime <script> tag is written by format_attrs, which writes ' as ', while the check in citry/_vue/serialization.py searches for the URL escaped with html.escape(..., quote=True), which writes it as '.
The page renders, or set_mounted_prefix() rejects the prefix with a clear message.
Notes
The sub-path an app is served below already handles this: normalize_sub_path() in citry/_sub_path.py percent-encodes ' for the same reason. The mount prefix could get the same treatment, or be checked against the characters a URL path may hold.
Activity