BioDrop icon indicating copy to clipboard operation
BioDrop copied to clipboard

[BUG] Button in Open source roadmap page redirects to a invalid repo

Open Karan-Palan opened this issue 3 years ago • 20 comments

Has this bug been raised before?

  • [x] I have checked "open" AND "closed" issues and this is not a duplicate

Where did you find this bug?

On Biodrop website, Open source page

Version of BioDrop (for example "v1.2.3")

v2.75.0

Description

When we click on the button, image

it redirects us to: image

Screenshots

https://github.com/EddieHubCommunity/BioDrop/assets/143683619/8a90e782-da74-41dc-9ec9-39e16937780c

Do you want to work on this issue?

No

If you want to work on this issue...

No response

Karan-Palan avatar Oct 15 '23 05:10 Karan-Palan

To reduce notifications, issues are locked until they are https://github.com/EddieHubCommunity/BioDrop/labels/%F0%9F%8F%81%20status%3A%20ready%20for%20dev and to be assigned. You can learn more in our contributing guide https://github.com/EddieHubCommunity/BioDrop/blob/main/CONTRIBUTING.md

github-actions[bot] avatar Oct 15 '23 05:10 github-actions[bot]

The issue has been unlocked and is now ready for dev. If you would like to work on this issue, you can comment to have it assigned to you. You can learn more in our contributing guide https://github.com/EddieHubCommunity/BioDrop/blob/main/CONTRIBUTING.md

github-actions[bot] avatar Oct 15 '23 06:10 github-actions[bot]

Thank you for raising the issue 👍

eddiejaoude avatar Oct 15 '23 06:10 eddiejaoude

can i work on this?

ameyabavkar avatar Oct 15 '23 06:10 ameyabavkar

I would like to work on this issue, Could you please assign me ?

Pinaka-Pani-18 avatar Oct 15 '23 06:10 Pinaka-Pani-18

Thank you for raising the issue 👍

Welcome, My pleasure

Karan-Palan avatar Oct 15 '23 08:10 Karan-Palan

Hi there, can this issue be assigned to me?

mianakbarjan avatar Oct 15 '23 08:10 mianakbarjan

i would like to work on this issue, Kindly assign me. Thanks

guranshdeol avatar Oct 15 '23 08:10 guranshdeol

Please assign this issue to me.

aryansri-19 avatar Oct 15 '23 09:10 aryansri-19

/assign

subrajeet-maharana avatar Oct 15 '23 09:10 subrajeet-maharana

I want to work on this issue.

hiteshmodi0624 avatar Oct 16 '23 16:10 hiteshmodi0624

Please assign me this issue if possible, would like to contribute to this.

RuchirDixit avatar Oct 16 '23 18:10 RuchirDixit

Hi! if this issue still doesn't have assignee, i would love to work on this issue

khairnsaa avatar Oct 17 '23 04:10 khairnsaa

Hey everyone, let's take it easy. Please avoid spamming here since only one person can be assigned to an issue. In the future, there will be more chances to work on different issues.

In open source, collaboration is key, not competition.

ATREAY avatar Oct 17 '23 05:10 ATREAY

Thank you for raising the issue 👍 Since this issue is still not assigned, I would love to get this assigned to me

sohamtembhurne avatar Oct 17 '23 09:10 sohamtembhurne

To anyone who would like to be assigned this issue, please explain what technical solution you would implement.

Please note the points (effort required) has been updated from Points 3 to Points 5 - therefore we are looking for the assignee to be familiar with this project and have worked on PRs before (and had these merged).

SaraJaoude avatar Oct 17 '23 20:10 SaraJaoude

i will fix it by changing the href value of "Open Source Roadmap" in the components/layout/DocsLayout.js

this is the current code { name: "Open Source Roadmap", href: "/docs/open-source-roadmap" },

and this is the code for my changes { name: "Open Source Roadmap", href: "/docs/open-source-roadmap/index.js" },

khairnsaa avatar Oct 18 '23 02:10 khairnsaa

I will fix the issue by changing the line in the following Current Code asPath === "/docs" ? `index.js` : `${asPath}.mdx My Code asPath === "/docs" || asPath === "/docs/open-source-roadmap" ? `${asPath}/index.js` : `${asPath}.mdx It will open the links to there correct files in the repo

ameyabavkar avatar Oct 18 '23 02:10 ameyabavkar

Right now the current code is

const githubUrl = `https://github.com/EddieHubCommunity/BioDrop/edit/main/pages${
    asPath === "/docs" ? `/docs/index.js` : `${asPath}.mdx`
  }`;

by giving "/docs/open-source-roadmap" another condition to check and replace "/docs/index.js" with ${asPath}/index.js we can solve this issue

My code

const githubUrl = `https://github.com/EddieHubCommunity/BioDrop/edit/main/pages${
    asPath === "/docs" || asPath === "/docs/open-source-roadmap" ? `${asPath}/index.js` : `${asPath}.mdx`
  }`;

Here is the screenshot On Production prod

On development/my local machine dev

Koushik1311 avatar Oct 18 '23 10:10 Koushik1311

I will fix the issue by changing the line in the following Current Code asPath === "/docs" ? `index.js` : `${asPath}.mdx My Code asPath === "/docs" || asPath === "/docs/open-source-roadmap" ? `${asPath}/index.js` : `${asPath}.mdx It will open the links to there correct files in the repo

Thank you @Ameya02 - as you have written the correct solution first, I will assign this to you.

SaraJaoude avatar Oct 21 '23 13:10 SaraJaoude