Choose a specific slide in <amp-carousel> at page load based on query parameters
What's the issue?
I was asked if it's possible to choose a specific slide in
https://campaign.simpleskincare.tw/Kind-to-Skin/#product_1 https://campaign.simpleskincare.tw/Kind-to-Skin/#product_2 https://campaign.simpleskincare.tw/Kind-to-Skin/#product_3
It dynamically decides which slide is going to be shown in the JS when the page gets loaded, and it's currently not possible with AMP.
How do we reproduce the issue?
By visiting links above ;)
What browsers are affected?
All
Which AMP version is affected?
1513979839742
Seems like an extension of https://github.com/ampproject/amphtml/issues/12591 ?
Yup, similar to #12591. Thanks for pointing that out.
It's implicit in this and #12591 but we the carousel should be able to update the URL too.
This should support query params (as per the title of the FR), fragments (which is what this FR is actually asking for), and also URL rewrites (using the history API).
Updating the URL query params or fragment will require something a bit more sophisticated than bind.
Example: https://adventure.howstuffworks.com/10-eerie-abandoned-cities-can-visit3.htm
Any progress on this?
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.