Skip to content

Commit

Permalink
Merge pull request #1645 from serlo/fix-accent-umlaut
Browse files Browse the repository at this point in the history
fix(alias): encode path again to match the alias in database
  • Loading branch information
hugotiburtino authored Jul 2, 2024
2 parents ce71573 + 86721cd commit 67d4fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/schema/uuid/abstract-uuid/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ async function resolveIdFromAlias(
return await resolveIdFromUsername(usernameMatch.groups.username, context)
}

cleanPath = cleanPath.slice(1)
cleanPath = decodePath(cleanPath.slice(1))
// The following check is to avoid DB lookups for paths that we know do
// not belong to UUIDs. This is a performance optimization.
// Original code see https://github.com/serlo/database-layer/blob/71b80050ecda63d616ab34eda0fa1143cb9e3ddc/server/src/alias/model.rs#L17-L63
Expand Down

0 comments on commit 67d4fb7

Please sign in to comment.