inkdropapp / api-docs

API documentation for Inkdrop
https://developers.inkdrop.app/
Other
17 stars 6 forks source link

Wrong redirection #5

Closed Keisir closed 1 year ago

Keisir commented 1 year ago

Hey, While looking at this documentation I noticed a bug that redirects you to a different page twice.

Info: The error occurs on Windows with Google Chrome or Firefox. No browser extensions are installed.

Steps to reproduce the bug:

  1. click on a link, it doesn't matter if it is an external web page or a page of this documentation.
  2. after opening the page, use the back button to return to the previous page.
  3. within a few seconds you will be redirected to the page you navigated back from.

wrong-redirection

craftzdog commented 1 year ago

Hi Keisir,

Thanks for the report. ahh that's because it uses next/link for external links. Just a should be used here.

culprit: https://github.com/inkdropapp/api-docs/blob/c1eaf439a09c8c11692a1b8f2bf803af4ab08bcb/src/components/mdx.jsx#L8