ampproject / ampproject/amphtml
Links target same tab / parent document
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Describe the new feature or change to an existing feature you'd like to see
Internal links always target a new tab. We want to be able to target the top or parent frame, especially when using the amp story viewer instead of a direct link. `` or something similar, should target the parent document from inside the story viewer.
## Describe alternatives you've considered
We've considered using a script embedded in the story itself, but that feels like a hack. We're also having issues getting the scripts to pass validation
## Additional context
[Here is an example from the showcase site](https://www.inverse.com/science/penguins-spot-the-difference/amp), there's a link in the seventh slide. We're on version 2103020156003.
Contributor guide
Assessment
This issue has not been assessed yet.