ampproject / ampproject/amphtml

Multiple amp-link-rewriter tag

Open
#38,154 2 comments 0 reactions 0 assignees View on GitHub
Component: amp-link-rewriter P3: When Possible Type: Bug WG: components WG: runtime
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

Hi! Is there a way to add multiple `amp-link-rewriter` tags to a page? I've tried adding a copy, adding an array of data objects, adding a copy of the `script` tag, and all with no success.

### Reproduction Steps

Adding the following data to the body section:

```


{
"output": "<link>",
"vars": {
"<key>": "<value>"
}
}

```

### Relevant Logs

_No response_

### Browser(s) Affected

_No response_

### OS(s) Affected

_No response_

### Device(s) Affected

_No response_

### AMP Version Affected

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the amp-link-rewriter component referenced in the reproduction and review its existing behavior for one tag. Establish whether multiple tags are intended to be supported and what combined output should result; the issue does not specify a concrete done condition or name tests or files.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.