ampproject / ampproject/amp.dev

Relative URL used in AMP4email example code

Open
#6,776 2 comments 0 reactions 0 assignees View on GitHub
Status: Pending Triage Type: Bug
Dominant language
HTML
Stars
600
Forks
675
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug Report

### Current behavior
The code in the [Advanced Server Request example](https://amp.dev/documentation/examples/email/interactivity-dynamic-content/advanced_server_request/) uses a relative URL which is not valid in AMP4Email and shows an error when viewed in the playground.

![Error message: The relative URL '/static/inline-examples/data/amp-list-animals.json' for attribute 'src' in tag 'amp-list' is disallowed.](https://github.com/ampproject/amp.dev/assets/7871206/27eb10e0-5b8e-4e40-b37b-3fc8a983f23b)

[Code in GitHub](https://github.com/ampproject/amp.dev/blob/main/examples/source/interactivity-dynamic-content/Advanced_Server_Request.html#L64)

### Expected behavior/code
Expect example code to pass validation

### Reproduction procedure

1. [Open Advanced Server Request example the in playground](https://playground.amp.dev/?url=https://preview.amp.dev/documentation/examples/interactivity-dynamic-content/advanced_server_request)
2. Look at error message

Contributor guide

Open the contributing guide

Research direction

Open examples/source/interactivity-dynamic-content/Advanced_Server_Request.html and inspect the amp-list URL around line 64. Reproduce the issue in the linked AMP playground, then verify that the example passes AMP4Email validation without the relative-URL error.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.