Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: getting started routing not working on other path structures #1288

Merged
merged 4 commits into from
May 28, 2024

Conversation

arthurgeron
Copy link
Contributor

@arthurgeron arthurgeron commented May 13, 2024

  • Fixes routing for "Getting Started" not working in docker hub

Context:

Wallet's Docs use a base path for all the routes, so if the base route is http://localhost:3030/docs/dev/, then Getting Startedpage is going to be http://localhost:3030/docs/dev/getting-started/.

The problem:

The problem with the current approach is that it'd push the entire path, so to change from getting started to install it'd need to push /docs/dev/install/, which is problematic because it isn't agnostic to the base path, which will change with implementations such as the one in the docs hub.

Solution:

Assume the base path from the current path in install page, so for http://localhost:3030/docs/dev/install/ it'd calculate the base path to be http://localhost:3030/docs/dev/, appending the new Wallet Docs path to the end of that base, which essentially makes it agnostic regarding the base path, fixing the behavior of that route navigation in Docs Hub.

Copy link
Contributor

github-actions bot commented May 13, 2024

Coverage report for ./packages/app

St.
Category Percentage Covered / Total
🟡 Statements 62.47% 3228/5167
🔴 Branches 41.91% 627/1496
🔴 Functions 46.94% 682/1453
🟡 Lines 63.03% 3110/4934

Test suite run success

240 tests passing in 70 suites.

Report generated by 🧪jest coverage report action from 265d390

@helciofranco helciofranco linked an issue May 13, 2024 that may be closed by this pull request
@LuizAsFight LuizAsFight merged commit 85f062c into master May 28, 2024
12 checks passed
@LuizAsFight LuizAsFight deleted the ag/fix/docs-getting-started branch May 28, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GET STARTED button not functioning
3 participants