blog-template icon indicating copy to clipboard operation
blog-template copied to clipboard

fix: handle special characters in tag URLs

Open Seventeezz opened this issue 1 year ago • 1 comments

When the tag contains special characters like '#', the generated URL becomes invalid due to the presence of these characters. This commit fixes the issue by encoding the tag using encodeURIComponent before constructing the URL.

Changes:

  • Use encodeURIComponent to encode the tag to ensure special characters are properly handled.
  • Update the href attribute in the tag to use the encoded tag.

Now, tags with special characters (e.g., 'C#') will generate valid URLs.

Seventeezz avatar Aug 07 '24 13:08 Seventeezz

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blog-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 1:04pm

vercel[bot] avatar Aug 07 '24 13:08 vercel[bot]

Thank you.

danielcgilibert avatar Sep 18 '24 18:09 danielcgilibert