Skip to content

Commit

Permalink
Merge pull request #1646 from serlo/fix-accent-umlaut
Browse files Browse the repository at this point in the history
fix(alias): Fix accent and umlaut in queries like `<subject>/<id>/<title>`
  • Loading branch information
hugotiburtino authored Jul 3, 2024
2 parents 67d4fb7 + 55e64a4 commit 9542b53
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 @@ -588,7 +588,7 @@ async function resolveIdFromAlias(
/^\/(?<id>\d+)$/,
/^\/entity\/view\/(?<id>\d+)$/,
/^\/entity\/repository\/compare\/(?<entityId>\d+)\/(?<id>\d+)$/,
/^\/(?<instance>[a-z]{2}\/)?(?<subject>[\w-]+\/)?(?<id>\d+)(?<coursePageId>\/[0-9a-f]+)?\/(?<title>[^/]*)$/,
/^\/(?<instance>[a-z]{2}\/)?(?<subject>[^/]+\/)?(?<id>\d+)(?<coursePageId>\/[0-9a-f]+)?\/(?<title>[^/]*)$/,
/^\/user\/profile\/(?<id>\d+)$/,
]) {
const match = regex.exec(cleanPath)
Expand Down

0 comments on commit 9542b53

Please sign in to comment.