Trying to amp-bind [href] on <a> tag
See original GitHub issueHi @choumx , I am facing another issue again with amp-bind
, we do have requirement to dynamically set the [href]
on <a>
tag. By default behavior, [href]
does prepend ‘https://domain.name’ BUT amp.bind does not recognize ‘:’ colon symbol. I personally dont see any chance that [href]
will work in any case because of the conflicting of preprend colon symbol from [href]
while amp.bind
is not recognizing colon symbol. I tried to google around and couldn’t find any example with the use of [href]
, while there is a guy on [stackoverflow]
(https://stackoverflow.com/questions/46286976/how-can-i-perform-string-manipulations-inside-an-amp-list-template) is facing the same issue as I am. Please advise how can I achieve amp-bind with [href], appreciate your help on this , much thanks.


Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (5 by maintainers)
We found the root cause, the
[href]
will be prepended withhttps://domain
only if the<a [href]>
is located inside<amp-list>
, hope it helps@leonalicious Verified this is fixed on version 1515455265699.