Skip to content

Incorrect link to reference in autocomplete #3196

Closed
@Serena20003

Description

@Serena20003

p5.js version

1.9.4

What is your operating system?

Mac OS

Web browser and version

Chrome 126.0.6478.127

Actual Behavior

When typing out p5.js functions and keywords, the autocomplete list (id="cm-complete-0") shows potential matches. The arrow links to the general reference page.
For example, the p5.js background function code:
<a href="https://p5js.org/reference/#/p5/background" role="link" onclick="event.stopPropagation()" target="_blank"><span class="hint-hidden">open background reference</span><span aria-hidden="true">➔</span></a>
I think the problem comes from the additional #/ in the href: https://p5js.org/reference/#/p5/background

Expected Behavior

When the arrow is clicked, it should open a new tab with the reference page of the specific function/keyword.
For example, the p5.js background function reference page: https://p5js.org/reference/p5/background/

Steps to reproduce

Steps:

  1. Type any letter into the web editor.
  2. Click on any of the black arrows on a yellow background from the list of autocomplete suggestions.
  3. Check the page landed on. It should show the general reference page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions