notsoocool / codecache

CodeCache is a dynamic web application designed to streamline the way developers manage and access code snippets. The platform provides a comprehensive library of code snippets, allowing users to save, organize, and retrieve useful code snippets for various programming languages and use cases.
https://codecache.tech
MIT License
18 stars 54 forks source link

after copying some snippet from /snippets route its getting redirect to snippets detail page #22

Closed Vivek7038 closed 2 months ago

Vivek7038 commented 2 months ago

Describe the bug

When we click on copy icon of any snippet in our snippets listing page we are getting redirected to that particular snippet details page ,

To Reproduce Steps to reproduce the behavior:

  1. Go to https://www.codecache.tech/snippets
  2. Click on copy icon of any snippet
  3. now you are redirected to snippet detail page after getting copied

Expected behavior we should only be able to copy on clicking copy icon Screenshots Untitled

Vivek7038 commented 2 months ago

Hey @notsoocool Can you add it under gssoc-ext and also the level and assign me

github-actions[bot] commented 2 months ago

🎉 Welcome to CodeCache! 🎉

Thank you for opening your first issue! We're excited to have you contributing to the project.

Before you get started, please make sure to check out our contributing guidelines and coding standards to ensure that everything is aligned with the project's workflow. If you have any questions or need help along the way, don't hesitate to ask.

We appreciate your input and look forward to collaborating with you. 🚀

Happy coding!

notsoocool commented 2 months ago

Hi @Vivek7038 ,

Thank you for reporting this bug!

You can go ahead and work on this issue. The expected behavior is that clicking the copy icon should only trigger the copy action without redirecting to the snippet details page.

Let me know if you have any questions while working on it, and feel free to reach out if you need any clarification!

Vivek7038 commented 2 months ago

@notsoocool The issue is fixed, and I have raised a PR. Please review it at #24 .

can you review and merge it .

notsoocool commented 2 months ago

Looking forward to more awesome contributions from you!