Skip to content

Conversation

jacob-gaylord
Copy link

Fix: citations with spaces now render & link correctly

Changes included in the amended commit:

  1. api/api.ts
    getCitationFilePath now URL-encodes the filename part while preserving any #page= fragment.

  2. components/Answer/AnswerParser.tsx
    • Trims whitespace from citation tokens and uses a relaxed regex when validating.
    • Ensures citations like [Fabric Administration.pptx] are recognized even if the model outputs extra spaces.

Together these changes let answers display superscript citation numbers and clickable links for filenames containing spaces or other special characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant