Docusaurus: navbar links opening in new tab

Created on 3 Apr 2020  路  1Comment  路  Source: facebook/docusaurus

馃悰 Bug Report

Have you read the Contributing Guidelines on issues?

yes

To Reproduce

  1. go to https://supabase.io/docs/about and click any of the links under Docs >
  2. note that the same urls in the sidebar open in the same tab
  3. source is available here

Expected behavior

Link would open in the same tab

Actual Behavior

Link opens in new tab

Your Environment

  • Docusaurus version used: 2.0.0-alpha.50
  • Environment name and version (Firefox latest):
  • Operating system and version (Mac OSX):

Reproducible Demo

https://supabase.io/docs/about
https://github.com/supabase/supabase/tree/master/web

We love this project 鉂わ笍 thanks for all the hard work

bug needs triage

Most helpful comment

@awalias please use to field instead of href for internal links. Then the link will open in the current tab. And leading slash does not need to be added.

https://github.com/supabase/supabase/blob/master/web/docusaurus.config.js#L49

>All comments

@awalias please use to field instead of href for internal links. Then the link will open in the current tab. And leading slash does not need to be added.

https://github.com/supabase/supabase/blob/master/web/docusaurus.config.js#L49

Was this page helpful?
0 / 5 - 0 ratings

Related issues

t3573393 picture t3573393  路  25Comments

slorber picture slorber  路  24Comments

bhaskarhc picture bhaskarhc  路  23Comments

knowbody picture knowbody  路  23Comments

KoenCa picture KoenCa  路  25Comments