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

[Bug]: Cannot use spaces in markdown page names #2953

Open
archiewood opened this issue Dec 23, 2024 · 3 comments
Open

[Bug]: Cannot use spaces in markdown page names #2953

archiewood opened this issue Dec 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@archiewood
Copy link
Member

archiewood commented Dec 23, 2024

Describe the bug

Upgraded from 39.1.13 of evidence in my local development environment and recently tried to upgrade to version 40.0.1.

Markdown pages that contain special characters now break eg white space.md

Image

Steps to Reproduce

Add a page with a space eg page two.md and try to navigate to it from the sidebar

CleanShot.2024-12-23.at.09.47.10.mp4

it's detecting the pre encoded space character %20 and then encoding it again, replacing the %-> %25
so overall you get page two.md -> page%20two -> page%2520two

Logs

System Info

System:
    OS: macOS 14.2.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 990.44 MB / 16.00 GB
    Shell: 5.1.16 - /opt/homebrew/bin/bash
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
    pnpm: 8.6.9 - /opt/homebrew/bin/pnpm
    bun: 1.0.25 - /opt/homebrew/bin/bun
  Browsers:
    Brave Browser: 123.1.64.122
    Chrome: 131.0.6778.205
    Safari: 17.2.1
  npmPackages:
    @evidence-dev/bigquery: ^2.0.9 => 2.0.9 
    @evidence-dev/core-components: ^5.0.3 => 5.0.3 
    @evidence-dev/csv: ^1.0.14 => 1.0.14 
    @evidence-dev/databricks: ^1.0.8 => 1.0.8 
    @evidence-dev/duckdb: ^1.0.13 => 1.0.13 
    @evidence-dev/evidence: ^40.0.3 => 40.0.3 
    @evidence-dev/motherduck: ^1.0.4 => 1.0.4 
    @evidence-dev/mssql: ^1.1.2 => 1.1.2 
    @evidence-dev/mysql: ^1.1.4 => 1.1.4 
    @evidence-dev/postgres: ^1.0.7 => 1.0.7 
    @evidence-dev/snowflake: ^1.2.2 => 1.2.2 
    @evidence-dev/sqlite: ^2.0.7 => 2.0.7 
    @evidence-dev/trino: ^1.0.9 => 1.0.9

Severity

serious, but I can work around it

Additional Information, or Workarounds

Workaround is to not use spaces / special characters in app paths

@archiewood archiewood added bug Something isn't working to-review Evidence team to review and removed to-review Evidence team to review labels Dec 23, 2024
@yecnj
Copy link

yecnj commented Dec 24, 2024

Hello.

I am yeonj, who first reported this issue on Slack.
I am excited to be involved in opening this issue.

Although I have limited experience contributing to open source, I am very interested in personally resolving the issues I report.
If given the opportunity, I would like to attempt to resolve this issue with a PR.

@archiewood
Copy link
Member Author

archiewood commented Dec 24, 2024

You are welcome to take a look at it. I'd suggest looking in Sidebar.svelte to begin with.

https://github.com/evidence-dev/evidence/blob/next/packages/ui/core-components/src/lib/organisms/layout/sidebar/Sidebar.svelte

@yecnj
Copy link

yecnj commented Dec 24, 2024

Thank you for guiding me to the starting point! I'll start by reviewing the file.

@yecnj yecnj mentioned this issue Dec 24, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants