amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Navigates back in browser history

Open mofidsky opened this issue 8 years ago • 2 comments

hi i think its important to back button work between pages. and i try the on="tap:AMP.goBack" but its refresh the current URL and not going back to previous page and scroll position or some tab is opened, like default browser behavior.

mofidsky avatar Oct 17 '18 08:10 mofidsky

@mofidsky AMP.goBack uses browser's native implementation.

If you are looking for single-page-app type of functionality, PWA + AMP (https://www.ampproject.org/docs/integration/pwa-amp) would currently be the best approach.

We are also planning couple of (medium/long)-term features to make this easier. Please subscribe to https://github.com/ampproject/amphtml/issues/16589 and https://github.com/ampproject/amphtml/issues/14738 for updates.

aghassemi avatar Oct 17 '18 15:10 aghassemi

Closing as dup of #16589 and #14738

aghassemi avatar Oct 17 '18 15:10 aghassemi