-
Notifications
You must be signed in to change notification settings - Fork 468
fix(screen): broken link when there's no document #764
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(screen): broken link when there's no document #764
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit db1e72e:
|
Codecov Report
@@ Coverage Diff @@
## master #764 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 25
Lines 702 702
Branches 183 183
=========================================
Hits 702 702
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we just want to update the redirect in testing-library-docs. Links in error messages should always work since some users might not be able to upgrade the library.
That's a good point.. I think we should add it there but IMO we shouldn't count on a redirect to always be there and also fix the link.. |
We don't need this anymore, right? The link is now valid. |
The link is valid but as I wrote above, I think that this fix should be in both places.. IMO we shouldn't rely on a redirect to always exist and should fix this here also.. |
We're actually less backwards compatible. Note that we can't change these links once published. If we decide to move the page then any version published will have 404 links. We could then decide to make redirect but we might as well use a permalink to begin with. Otherwise we have to maintain redirects for every published version of the library. I believe this is the same rationale that React is using for links in dev warnings. All of these links redirect to the actual page. |
That's a good point, I didn't think about it that way.. |
What: Fix a broken link when there's no document defined
Why: The link is broken
How: I've put a link to the screen api definition. I couldn't find the page that was there before in the docs repo neither in the commits history.
Checklist:
docs site - N/A