Hello @devansh1995
Thank you for the support topic, it seems that the drive links are generated by custom javascript, AMP does not allow custom javascript on AMP pages, so the AMP plugin removes them to create a valid AMP page.
From the link you shared, I can see your iframe link for the directory in google drive is working as expected (“CA INTERMEDIATE MOCK TEST PAPERS NOV 2020”) on AMP and non-AMP pages, I will suggest going with that approach.
So is there no way I can keep using the dans gdrive plugin which i was using earlier and was working good until i installed this amp plying?
Hello @devansh1995
As I explained before the plugin uses javascript, AMP does not allow custom javascript. however you can use amp-script component to add script.
but using an iframe-based directory link was the easiest way to handle it so I suggested that approach.
Also, the javascript which was added by the plugin also exposed your Google drive key’s on the site. so anyone who views the source of your site can easily see them which they can use to add or remove files to your drive.
Ok thanks a lot for the help and quick reply.
I hope I answered all your queries, I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.