ampproject / ampproject/worker-dom

fetch should not require absolute URLs

Open
#447 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

Currently, `fetch(/test.json')` will fail with in exception that the host cannot be determined.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the fetch('/test.json') case and trace the fetch entry point to where the host-cannot-be-determined exception is raised. Inspect the existing fetch-related tests, if present, and verify that a relative URL no longer fails because it lacks an absolute host.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
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.