processing / processing/p5.js-web-editor

relative fragment links are broken

Open
#3,495 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:Editor Bug On Hold
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

p5.js version

n/a

What is your operating system?

Windows

Web browser and version

firefox

Actual Behavior

a fragment link in html eg:

<a href="#frag">jump to frag</a>
<div id="frag">hi!</div>

are broken and result in:
"Not found"
when running before saving, or:
{"message":"Asset does not exist"}
when running after saving

Expected Behavior

jump to fragment as expected in HTML

Steps to reproduce

see above snippet or here:
https://editor.p5js.org/eyaler/sketches/Lo8oYAYsR

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked reproducible sketch and compare the fragment link behavior before and after saving in Firefox on Windows. The work is done when the provided anchor navigates to the matching fragment in both states without a “Not found” or “Asset does not exist” response.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.