Skip to content

Commit

Permalink
docs(tutorials/blog): fix links to MDN (#3939)
Browse files Browse the repository at this point in the history
* Fix links to mdn.io/Request

mdn.io/request goes to https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods
which isn't what we want.

mdn.io/Request goes to https://developer.mozilla.org/en-US/docs/Web/API/Request
which is what we actually want here.

mdn.io/request.formData and mdn.io/Request.formData both redirect to the same place,
but I updated this link to match the other fix.

* Sign CLA
  • Loading branch information
philandstuff authored Aug 6, 2022
1 parent 308bdf7 commit efb3e7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@
- pcattori
- penspinner
- penx
- philandstuff
- phishy
- plastic041
- plondon
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ export const action = async ({ request }) => {

That's it. Remix (and the browser) will take care of the rest. Click the submit button and watch the sidebar that lists our posts update automatically.

In HTML an input's `name` attribute is sent over the network and available by the same name on the request's `formData`. Oh, and don't forget, the `request` and `formData` objects are both straight out of the web specification. So if you want to learn more about either of them, head over to MDN! [mdn.io/request][mdn-io-request] [mdn.io/request.formData][mdn-io-request-form-data].
In HTML an input's `name` attribute is sent over the network and available by the same name on the request's `formData`. Oh, and don't forget, the `request` and `formData` objects are both straight out of the web specification. So if you want to learn more about either of them, head over to MDN! [mdn.io/Request][mdn-io-request] [mdn.io/Request.formData][mdn-io-request-form-data].

TypeScript is mad again, let's add some types.

Expand Down Expand Up @@ -1175,8 +1175,8 @@ We hope you love Remix! 💿 👋
[the-styling-guide]: /guides/styling
[prisma]: https://prisma.io
[http-localhost-3000-posts-admin]: http://localhost:3000/posts/admin
[mdn-io-request]: https://mdn.io/request
[mdn-io-request-form-data]: https://mdn.io/request.formData
[mdn-io-request]: https://mdn.io/Request
[mdn-io-request-form-data]: https://mdn.io/Request.formData
[disable-java-script]: https://developer.chrome.com/docs/devtools/javascript/disable
[the-optimistic-ui-guide]: /guides/optimistic-ui
[somewhere]: https://www.youtube.com/watch?v=dQw4w9WgXcQ

0 comments on commit efb3e7f

Please sign in to comment.