1,644 questions
2
votes
0
answers
133
views
How do i intercept the Back navigation button/gesture in a (Delphi 12) Android 16 app?
How can i intercept the Back navigation button/gesture in the latest Delphi and Android versions?
In the past, with Delphi 11 and Android 12 (maybe 13), i used vkHardwareBack in the Form OnKeyUp event,...
0
votes
1
answer
52
views
Browser back button exits Single Page App despite pushState() on Chrome only
I’m working on a legacy single-page application that uses AJAX to load different internal views. After recent browser updates the Browser Back Button stopped behaving as expected.
The current problem:
...
0
votes
3
answers
95
views
android onBackPressed button navigation crash
i want to make a back navigation logic using this code :
backBtn.setOnClickListener(v -> {
onBackPressed();
});
otherUsername.setText(otherUser.getUsername());
but it seem that the ...
0
votes
3
answers
350
views
Flutter Back button should navigate to Home Page
After checking various pages and ChatGPT, I need to ask for help here. I want to have a logic that once I am logged into the app and navigate through the pages, the back button should always navigate ...
0
votes
1
answer
283
views
How to detect if a route exit was triggered by browser back button or context.go in Flutter using GoRouter and StatefulShell?
I'm working on a Flutter web project using GoRouter with a StatefulShell for route management. I want to differentiate between route exits triggered by the browser's back button and programmatic ...
1
vote
1
answer
133
views
Migrating from BackRequested UWP to WinUI-3
In a UWP project (intended for PCs and tablets) I implemented a BackRequested, so that tablets can launch the 'back to previous page action' with the default button offered by tablets, via the ...
1
vote
0
answers
78
views
How can I handle hardware back button navigation in a React Native Wizard component without modifying the child component?
I'm working on a React Native project where I have a custom Wizard component that allows users to navigate through different steps in a form. The Wizard component is used within a parent component ...
0
votes
1
answer
194
views
Laravel Livewire 3 overwrites HTTP response headers
We have this middleware in my app because internal security asked us to overwrite these response headers.
class NoCacheControlHeaders
{
public function handle(Request $request, Closure $next)
{...
1
vote
1
answer
106
views
ERROR TypeError: Cannot read properties of undefined (reading 'setOnModelChange') at NgxCurrencyDirective.registerOnChange
Expectation is on click of browser back it should navigate to websites homepage but instead screen got stuck and in console below error is printed.
ERROR
TypeError: Cannot read properties of undefined ...
0
votes
0
answers
71
views
Can't remove back button title, nor change tint color when pushing UIViewController from SwiftUI view via UIViewControllerRepresentable
I have a SwiftUI NavigationView and a SwiftUI view displayed in SwiftUI. The navigation link refers to a UIViewControllerRepresentable wrapping a UIViewController. I have been unable to remove the ...
1
vote
1
answer
147
views
Call OnBackButtonPressed() in ComponentBase class in Maui.Net
I am building a mobile app (Android and iOS) using .NET MAUI Blazor Hybrid with .NET 8. For the frontend UI, I am using MudBlazor, and I have implemented MudDialog in several places. My issue is that ...
0
votes
1
answer
125
views
Browser back button doesn't work with youtube videos
I am facing an issue where when I upload any YouTube video on a page or upload multiple videos in a carousal (AEM), the browser button just doesn't work. It doesn't take you to the previous page. Also ...
1
vote
1
answer
74
views
onBackPress for dialogFragment in kotlin android
This is a dialog fragment that inflates a xml file. This dialog fragment will then be used in another fragment as a pop up.
I am trying to override the back button where the back button should not ...
0
votes
1
answer
60
views
When I click on logout button I still can go back to previous page using browser's back button [duplicate]
I have a servlet where i validate the login using POST and logout using GET. So, i want when i click on logout button, i cannot go back to previous page because the session is terminate. But it did ...
1
vote
1
answer
87
views
Tkinter back and forward buttons re: visited history
My app displays details for one person at a time based on a current_person_id and other information related to that person which is stored in a database. I wanted to change the details displayed based ...
1
vote
2
answers
300
views
I want to catch swipe back(IOS) and back button(android) before pop invoked
When i swipe back, if nothing is changed it should just go back. if i have changed some personal data (for example, first name or last name) and I swiped back, it should stay in PersonalDataScreen and ...
1
vote
4
answers
1k
views
Phone back button close the app instead of going to prev page in flutter
i added pop scope to my code to go to prev page when the back button on android 3-button is pressed, but instead of going to prev page, it closed the app instead. I don't want to close the app.
this ...
1
vote
0
answers
73
views
Browser back button didn't gave me time to show the modal
This is my js code first i have tried if someone made changes in fields then this modal shows if i tried to go other pages without saving. That's work fine for me. But on browser back button a problem ...
1
vote
1
answer
1k
views
Angular router and browser back button
In my Angular app(version 13), I have three components: A, B, and C, each corresponding to routes route-A, route-B, and route-C, respectively. Consider a routing scenario where I route from route-A to ...
1
vote
0
answers
71
views
Android: Action bar back button leaves the app unresponsive after being tap
Even when I've just realised that action bar back button is not completely necessary in my app (because access to all screens are already present in footer menu), I need to understand why it is making ...
0
votes
1
answer
29
views
Listview seems not to respond to adapter changes after accessing Fragment by back button
I am developing an android app with a few fragments.
activity_main.xml:
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:...
1
vote
0
answers
49
views
Why back button on title bar isn't shown
My main activity is this:
class MainActivity extends AppCompatActivity {
ActivityMainBinding uiBinding;
@Override
protected void onCreate(Bundle savedInstance){
super....
2
votes
2
answers
1k
views
How do I combine back buttons for Screens and WebView into one in React Native using React Navigation package?
I'm learning navigation in React Native, and can't figure out way how to conditionally use one Back Button.
Wanted behaviour would be like this - if user navigate between screens, he can press Go Back ...
0
votes
1
answer
1k
views
.Net Maui Shell OnBackButtonPressed
We have overridden the OnBackButtonPressed event for our shell application so the Android device back button will use custom code. We are only dealing with the Android device back button at this time....
0
votes
1
answer
105
views
Exit application on back button using getOnBackPressedDispatcher
To override the back button's action in API below 33, one could use
@Override
public void OnBackPressed(){
finish();
}
Now that this has been deprecated, I am trying to get the ...
2
votes
1
answer
2k
views
How to disable backward button on web browser in flutter web WillPopScope Deprecated
I want to disable or at least change the page that the app return to when pressing the backward button on web browser, Willonscope used to work but now that it is deprecated, I tried Popscope but it ...
0
votes
1
answer
156
views
How to add a back button in the top corner of the left page?
I am trying to add a back button to the top-corner of the left page, with a triangular form.
Here is a reproducible example of the Shiny app:
library(shiny)
ui <- fluidPage(
tags$head(
tags$...
1
vote
0
answers
106
views
How do you get proper Material 3 behavior out of NavigationBar?
I am instantiating a NavigationBar but navigating from a tab's base page to a detail page within (drilling down from a summary to detail) makes the detail go full screen instead of remain within the ...
1
vote
1
answer
86
views
How to combine together WebViewWidget and WillPopScope
How can I use WillPopScope with WebViewWidget in Flutter? I only found examples with WebView. With WillPopScope I would need that, when the back button is pressed, it returns to the page https://www....
0
votes
0
answers
491
views
Flutter android default back button minimizing application on every widget
Here is my ymal file,
name: dtlive
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is ...
0
votes
0
answers
31
views
Asp.net GridView index not accurate when returning to the page (back button) after DB row deleted
I have a Gridview in asp.net that shows filtered information from a DB. The grid has a link button that directs to an Information page.
When the user changes the data at the information page (which ...
0
votes
1
answer
2k
views
Vue router back button prevent navigation to previous domain
Here is my situation, I have a Vue 3 app using vue-router. On certain pages in my app, there is a back button. If a user navigates to one of the back button pages the page directly, for example /users/...
0
votes
1
answer
215
views
react native hardwareBackbutton cause minimize app from Android >= 10
I dont know how to describe the problem by codes, but my hardwareBackbutton work normally for android devices with OS < 10. Another cause minimize app.
With pop() function from navigation, it's ...
1
vote
0
answers
83
views
Cordova backbutton event not working even with preventDefault action
I am using Cordova 11.1.0 to build an android app. I am trying to override the backbutton event to ignore the action completely so that it doesn't go back to the previous page.
This the code I am ...
2
votes
1
answer
1k
views
Android Navigation: How to fix back button behavior in Jetpack Compose NavHost?
It seems like the composable NavHost from androidx.navigation:navigation-compose:2.5.3 does not satisfy navigation principles for back-button navigation as outlined here: https://developer.android.com/...
0
votes
1
answer
85
views
Default back button flutter app bring me in login page instead of previous page
I am developing a flutter application.
When I press the default back button, it brings me to the login page.
Why?
Row(
children: [
SizedBox(
width: 20,
),
...
0
votes
1
answer
2k
views
OnBackButtonPressed-Event not reached
In my .NET MAUI App, I navigate to one of my ContentPages via:
await Shell.Current.GoToAsync(nameof(ManagePeopleItem), true);
The page is registered in AppShell.xaml.cs via:
Routing.RegisterRoute(...
0
votes
1
answer
409
views
Custom back button in javascript doesn't seem to work in android webview
I am trying to get the custom back button in Javascript
on the webpage to work when the webpage is opened in the android webview.
The phone's standard back button on the bottom of the screen works ...
3
votes
0
answers
533
views
Disable Android system back button using backButtonDispatcher (in Flutter)
We all know about WillPopScope.
Example:
return WillPopScope(
onWillPop: () async => return false,
child: Scaffold(...));
That works fine in most cases but not in mine. I'm ...
0
votes
0
answers
21
views
How can I adjust this using the new NavigationStack or even just adjusting the NavigationLink using value/label instead? Need to fix double 'back'
I am trying to 'remove' the previous views after navigating more than 2 tabs away from the 'ContentView'. Currently, I am running into double 'back' options. One will take me back 1 view and the other ...
0
votes
0
answers
262
views
How do I make the mobile back button close a modal without returning to the previous page?
On mobile, my modals cover the whole screen. They look exactly like whole new web pages. This leads to users getting confused. They expect to be able to press the back button and have the modal close. ...
2
votes
0
answers
258
views
popstate - need to click twice on back button to actually get back on react-native
working on single page appliction trying use popstate to navigate back to previous page but I have to click twice to take me back. I want to make it happen for one click. console showing for each ...
1
vote
1
answer
554
views
How to fix OnBackPressedCallback if it doesn't work in Fragment?
Here I override handleOnBackPressed() method:
Log.d("Fragment", "onViewCreated")
requireActivity().onBackPressedDispatcher.addCallback(viewLifecycleOwner) {
...
0
votes
3
answers
421
views
How can I show a confirm dialog with Vaadin 23 when the user clicks on back button?
how can I show a dialog to stay or leave the current page with Vaadin 23, when a user clicks back button on browser?
Regards
0
votes
1
answer
610
views
Wocommerce back button from single product back to previous page styling to make it a button
I've made a back link to take customer from single product back to product display. I need to know how to give this code a class to make it a button.
The code is
add_action( '...
0
votes
0
answers
81
views
Make a preventBack function not work on a certain url
I'm making a webpage and I'm really new to this. I have a preventBack function that works great, but I want a certain page (specifically the name is restart.html) not to be affected by this script.
I ...
0
votes
2
answers
5k
views
How to detect if user pressed back button in their mobile (browser) with JS
I'm developing a PWA and there is a conflict between a library I use for loading and back button
The only thing I need to detect is whether user clicked back button in their mobile (PWA) or not. Then ...
0
votes
0
answers
1k
views
Back Button doesn't work when iframe is clicked on
I am creating a chrome extension which embeds an iframe on a website and it works well except when a user clicks on the iframe (or anything inside the iframe) and then tries to use the back button to ...
0
votes
2
answers
7k
views
Angular browser back button doesn't work properly
When browser back button clicked the app redirects to the first url of the app. For example, current route is localhost:3000 then I'm going to home localhost:3000/home and then to localhost:3000/...
0
votes
0
answers
73
views
window.addEventListener calls function but doesn't load latest data
I am trying to reload the latest data from a database when the browser back button is clicked.
However, even though the following code runs, and the data has already been updated in the database, the ...