Skip to content

Commit

Permalink
Fix bug when dash is present in react route (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Dec 3, 2023
1 parent b7d5241 commit 1ff715b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curvy-apes-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini-react': patch
---

Fix bug when dash present in route name
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/houdini/src/lib/router/conventions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function page_id(path: string) {
if (path.endsWith('/') && path.length > 1) {
path = path.substring(0, path.length - 1)
}
const special_chars = ['/', ']', '[', '(', ')']
const special_chars = ['/', ']', '[', '(', ')', '-']
const mask = '_'

let copy = ''
Expand Down

0 comments on commit 1ff715b

Please sign in to comment.