corona-warn-app / cwa-documentation

Project overview, general documentation, and white papers. The CWA development ends on May 31, 2023. You still can warn other users until April 30, 2023. More information:
https://coronawarn.app/en/faq/#ramp_down
Apache License 2.0
3.29k stars 345 forks source link

Slow FAQ article display due to old links #912

Closed MikeMcC399 closed 1 year ago

MikeMcC399 commented 1 year ago

Avoid duplicates

Technical details

Describe the bug

Both Android and iOS link from the app to individual FAQ articles on the cwa website using old links /faq/#anchor which redirect to articles under /faq/results/#anchor. This delays the display of the requested article in the app browser for several seconds.

For example: https://github.com/corona-warn-app/cwa-app-android/blob/d3833a212bd4c84e38a1fad23b282836d70ab8d5/Corona-Warn-App/src/main/res/values/links.xml#L51 <string name="statistics_explanation_faq_url">"https://www.coronawarn.app/en/faq/#further_details"</string>

Note: The cwa-website was restructured in March 2022 and all articles were moved from the /faq level to the /faq/results level with a redirect put in place.

Steps to reproduce the issue

In CWA app:

  1. On Status page scroll down (and if necessary to the right) to statistics tile "7-Day Incidence"
  2. Tap "i" information icon
  3. Scroll down to FAQ link and tap on it
  4. Make a note of the time taken before the text of the article coronawarn.app/en/faq/results/#further_details appears (for example 11 seconds)

Expected behavior

The app should respond faster to taps on FAQ articles.

Possible Fix

Replace all app links of the form http://www.coronawarn.app/_language_/faq/#anchor by http://www.coronawarn.app/_language_/faq/results/#anchor

In a test on Android 12, Samsung Galaxy A52, Google Chrome and the 2.26.x branch, changing the URL http://www.coronawarn.app/en/faq/#further_details to http://www.coronawarn.app/en/faq/results/#further_details reduced the time to display from 11 seconds to 6 seconds.

The link files involved are:

Android

iOS