-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Similar to javascript:window.close()
feature
#19683
Comments
Not sure what category this should be in. I don't see a reason why we couldn't add this, though opening a new tab is pretty slow. Also, system affordances (e.g. swipe from left edge on iOS, Android back button) already accomplish this.
You could try to do this with a same-window element popup (i.e. no page navigation). /cc @aghassemi |
@leonalicious @choumx yeah, adding p.s. @leonalicious I am working on a project to enable better multi-page transitions and navigation in AMP using WebPlatfroms's upcoming "Portals" feature. AliExpress is a perfect example where this can be beneficial. Hope we can collaborate (likely closer to mid 2019 as portals is in early development right now) |
@choumx thank you for the clarification, we have tried with a very complicated integration with
And I am agree with Ali that both @aghassemi yeah, we have heard about |
@leonalicious Working on it this sprint, given our holiday release schedule, it should make it to prod Jan 9. |
This issue doesn't have a category which makes it harder for us to keep track of it. @aghassemi Please add an appropriate category. |
@leonalicious What do you think about the following API
The API will:
I am thinking about the case where the back button in your UI can not/should not close the window and instead needs to navigate. For example, when the detailed page is directly shown in a viewer. /cc @dvoytenko for thoughts? |
@aghassemi Good Day there, yeah, it makes sense to me, thank you for the considerations |
Hey there, here is some background, our
Search List
page is usingamp-list
to fetch and render data. And based on its nature behavior,amp-list
will alway send request and fetch latest data.FYI, we have been trying several methods to achieve a more completed shopping experience on
Search List
->Detail
, and then buyers can return back toSearch List
fromDetail
, and stop the buyers at the exactviewport
they scrolled at &filter criteria
they have selected.Right now, we have come out with a solution to make this happens, which is at the
Search List
page, we will settarget="_blank"
on each<a href>
tag in order to openDetail
page in a new tab in browser, andjavascript: window.close()
at theDetail
page to close the page when user clicks onBack Arrow
(located at the top left corner of the page) orNavigation Back button
on Android phone.Here is the question I wanna ask, is there any function or solution that we can implement that will work like
javascript: window.close()
or any suggestion to make this flow happens, please adviseThe text was updated successfully, but these errors were encountered: