[BUG] Button in Open source roadmap page redirects to a invalid repo
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,
it redirects us to:
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
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
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
Thank you for raising the issue 👍
can i work on this?
I would like to work on this issue, Could you please assign me ?
Thank you for raising the issue 👍
Welcome, My pleasure
Hi there, can this issue be assigned to me?
i would like to work on this issue, Kindly assign me. Thanks
Please assign this issue to me.
/assign
I want to work on this issue.
Please assign me this issue if possible, would like to contribute to this.
Hi! if this issue still doesn't have assignee, i would love to work on this issue
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.
Thank you for raising the issue 👍 Since this issue is still not assigned, I would love to get this assigned to me
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).
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" },
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
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
On development/my local machine
I will fix the issue by changing the line in the following Current Code
asPath === "/docs" ? `index.js` : `${asPath}.mdxMy CodeasPath === "/docs" || asPath === "/docs/open-source-roadmap" ? `${asPath}/index.js` : `${asPath}.mdxIt 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.