Skip to content

v3 site: error 500 in translated docs slugs #2344

@AlexxNB

Description

@AlexxNB

I'm translating the docs right now. Site can't be build when I use cyrillic in *** headers, because this line:

.replace(/[^a-zA-Z0-9]+/g, '-')

at https://github.com/sveltejs/svelte/blob/master/site/src/routes/docs/_sections.js#L105

... deletes all signs from the slug and causes 500 error.

a-zA-Z is a pattern for english letters only. The \p{Letter} could be used instead, but not all possible letters are allowed to be in URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions