ionic-team / ionic-team/ionic-framework

bug: <ion-back-button> going back removes previously set search parameters

オープン
#21,086 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
package: core type: bug
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
51

説明

# Bug Report

**Version(s):**
Ionic: **5.0.7**
Stencil: **1.12.4**

**Current behavior:**

Using the stencil ionic pwa starter, starting at the home component with a url that has search parameters:

`http://localhost:3333/?name=value`

Navigate to the profile page:

`http://localhost:3333/profile/ionic`

Then use `` to navigate back:

`http://localhost:3333`

**Expected behavior:**

Maintain the query parameters when navigating back (if possible):

`http://localhost:3333/?name=value`

**Other information:**

Here is a repo, its a modified ionic pwa starter, with a searchbar at the top of the home layout to change query props:

https://github.com/ajmchambers/ionic-router-example-2

![back-button](https://user-images.githubusercontent.com/5426717/79799067-c93c8e00-8351-11ea-8417-ec7c2fe3d235.gif)

Not really sure what the intended behaviour should be for the `` so this may be considered a feature request rather than a bug.

The back button seems to use `` to go back, maybe the search parameter string at the time of navigating could be added into the view history or something like that.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。