amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp form changes link href _blank to href _top

Open tiuvi opened this issue 5 years ago • 4 comments

Description

Backend url endpoint image

Response json {"section":[{"message":"Ir al borrador <a class="link" target="_blank" href="https://aliceblue.developer/admin/editor/eraserpost/htmlnosubcategoryseccionhtml.html" >Borrador</a>"}]}

And form response image

I'll try to use an event to see if it works but is this an expected behavior of amp-form?

Reproduction Steps

Create form Create endpoint and after you can see element a href="_target" change href="_top"

Relevant Logs

No response

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

tiuvi avatar Jun 04 '21 09:06 tiuvi

Hey @micajuine-ho can u look into this issue?

dmanek avatar Jun 04 '21 16:06 dmanek

I can provide more data, but javascript is not my strong suit

image console errors image

This is the form, remove the sanitation if it worked like that but also clean on = "" attribute

tiuvi avatar Jun 04 '21 16:06 tiuvi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 08 '23 05:01 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 28 '25 02:04 stale[bot]