Open card when following link

This commit is contained in:
Andras Schmelczer 2022-09-25 18:01:45 +02:00
parent a8a21a58fb
commit 0b754bf7ae
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
3 changed files with 23 additions and 11 deletions

View file

@ -1,2 +1,2 @@
export const titleToFragment = (title: string): string =>
encodeURIComponent(title.toLocaleLowerCase().replace(/\W+/g, '-'));
'#' + encodeURIComponent(title.toLocaleLowerCase().replace(/\W+/g, '-'));