ionic-team / ionic-team/ionic-framework
bug: location.replaceState does not update url in stack controller view item
- Dominant language
- TypeScript
- Stars
- 52.7k
- Forks
- 13.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 51
Description
# Bug Report
**Ionic version:**
[x] **5.x**
**Current behavior:**
I am doing a replace.State on the queryParams depending on which ionSlide is selected.
In the template:
```
```
Ionic:
Ionic CLI : 6.11.0 (/Users/zen/.nvm/versions/node/v12.18.2/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.3.1
@angular-devkit/build-angular : 0.1000.6
@angular-devkit/schematics : 10.0.6
@angular/cli : 10.0.6
@ionic/angular-toolkit : 2.3.0
Utility:
cordova-res (update available: 0.15.1) : 0.12.1
native-run : 1.0.0
System:
NodeJS : v12.18.2 (/Users/zen/.nvm/versions/node/v12.18.2/bin/node)
npm : 6.14.7
OS : macOS Mojave
```
Contributor guide
Research direction
Start with angular/src/directives/navigation/ion-back-button.ts and trace the IonRouterOutlet.pop() path identified in the issue. Run the linked StackBlitz reproduction and compare ion-back-button with Angular Location.back(), NavController.navigateBack(), and the browser back button. Done means the back button preserves the URL from the latest location.replaceState call.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100