Matthias Krüger
63799ba549
Rollup merge of #112707 - GuillaumeGomez:back-in-history-fix, r=notriddle
...
[rustdoc] Fix invalid handling of "going back in history" when "go to only search result" setting is enabled
You can test the fix [here](https://rustdoc.crud.net/imperio/back-in-history-fix/lib2/index.html ). Enable "Directly go to item in search if there is only one result", then search for `HasALongTraitWithParams` and finally go back to previous page. It should be back on the `index.html` page.
The reason for this bug is that the JS state is cached as is, so when we go back to the page, it resumes where it was left, somewhat (very weird), meaning the search is run again etc. The best way to handle this is to force the JS re-execution in this case so that it doesn't try to resume from where it left and then lead us back to the current page.
r? ``@notriddle``
2023-06-17 12:43:31 +02:00
..
2023-05-20 14:41:37 +03:00
2023-04-11 19:14:35 +02:00
2023-05-21 13:10:03 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-05-11 11:34:22 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-05-11 11:34:22 +02:00
2023-05-23 15:56:40 -07:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-05-11 11:49:16 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-12 20:07:10 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-06-11 14:40:12 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-05-25 14:32:00 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-05-11 11:34:22 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-05-23 15:26:59 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-05-23 17:19:35 -07:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-05-11 11:34:22 +02:00
2023-05-23 00:32:20 +05:30
2023-04-11 19:14:35 +02:00
2023-05-11 11:34:22 +02:00
2023-04-11 19:14:35 +02:00
2023-04-20 14:32:02 -07:00
2023-04-11 19:14:35 +02:00
2023-04-12 20:07:10 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-06-16 15:02:22 +00:00
2023-06-03 16:37:43 +02:00
2023-04-11 19:14:35 +02:00
2023-06-03 16:37:43 +02:00
2023-04-11 19:14:35 +02:00
2023-06-03 16:37:43 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-06-16 20:41:00 +02:00
2023-05-22 16:46:29 -07:00
2023-06-14 10:37:56 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-12 10:31:06 -07:00
2023-06-04 15:55:30 +02:00
2023-05-11 11:49:16 +02:00
2023-04-12 20:07:10 +02:00
2023-05-11 11:34:22 +02:00
2023-05-20 14:41:37 +03:00
2023-04-11 19:14:35 +02:00
2023-06-14 16:23:05 +02:00
2023-05-11 11:34:22 +02:00
2023-05-24 14:41:18 +02:00
2023-05-11 11:34:22 +02:00
2023-05-29 16:03:56 +02:00
2023-06-07 17:42:04 +02:00
2023-04-11 19:14:35 +02:00
2023-05-31 13:03:46 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00
2023-05-11 11:34:22 +02:00
2023-04-11 19:14:35 +02:00
2023-04-11 19:14:35 +02:00