question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FAQ article with legacy link not displayed after visiting main FAQ page

See original GitHub issue

Where to find the issue

https://www.coronawarn.app/en/faq/ and https://www.coronawarn.app/en/faq/results/

Describe the issue

If an attempt is made to display an FAQ article with a legacy link https://www.coronawarn.app/en/faq/<#article_hash> (such as used by the CWA Android and iOS apps) directly after having visited the FAQ overview page https://www.coronawarn.app/en/faq/ then no article is shown. The display stays at the overview page.

Steps to reproduce

In browser

  1. Open Google Chrome
  2. Paste https://www.coronawarn.app/en/faq/ into the address bar and press Enter
  3. Note that the page “How can we help you?” is shown
  4. Paste https://www.coronawarn.app/en/faq/#android_location into the address bar and press Enter
  5. Note that the page display does not change. It still shows the contents from https://www.coronawarn.app/en/faq/
  6. Press <F5> to reload the page
  7. Now the article https://www.coronawarn.app/en/faq/results/#android_locationis shown

With Cypress

Save the following code into cypress/e2e/faq_page_change.cy.js

it("Show problem with FAQ article display", () => {
    cy.visit("/en/faq/");
    cy.visit("/en/faq/#android_location");
    cy.get("#android_location");
});

Run it with npx cypress open -c baseUrl=https://www.coronawarn.app Modify baseUrl also to https://coronawarn.app and http://localhost:8000 for different test conditions.

For http://localhost:8000 use npm start in a separate window to start the local server.

Select browser to test in Cypress test runner and click on faq_page_change.js to run test.

Results

baseUrl \ Browser Chrome 104 Firefox 103 Electron 94
https://www.coronawarn.app (1) (1) (1)
https://coronawarn.app (2) (2) (2)
http://localhost:8000 No error No error (1)

Errors: (1) “Timed out retrying after 4000ms: Expected to find element: #android_location, but never found it.” (2) “Timed out after waiting 100000ms for your remote page to load. Your page did not fire its load event within 100000ms.”

Expected behaviour

Visiting a legacy FAQ link, such as https://www.coronawarn.app/en/faq/#android_location directly after having visited the FAQ overview page https://www.coronawarn.app/en/faq/ should result in a redirection to the faq/results page, in this example to https://www.coronawarn.app/en/faq/results/#android_location.

The FAQ article should be displayed.


Internal Tracking ID: EXPOSUREAPP-14106

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
larswmhcommented, Oct 10, 2022

Thanks for your report @MikeMcC399. We have created an internal ticket for it and will raise this topic internally. Internal Tracking ID: EXPOSUREAPP-14106


Corona-Warn-App Open Source Team

0reactions
MikeMcC399commented, Aug 9, 2022

Revised test for Cypress

Save the following code into cypress/integration/faq_page_change.js

it("Show problem with FAQ article display", () => {
    cy.visit("/en/faq/");
    cy.visit("/en/faq/#android_location");
    cy.get("#android_location");
});

Run it with npx cypress open -c baseUrl=https://www.coronawarn.app Modify baseUrl also to https://coronawarn.app and http://localhost:8000 for different test conditions.

For http://localhost:8000 use npm start in a separate window to start the local server.

Select browser to test in Cypress test runner and click on faq_page_change.js to run test.

Results

baseUrl \ Browser Chrome 104 Firefox 103 Electron 94
https://www.coronawarn.app (1) (1) (1)
https://coronawarn.app (2) (2) (2)
http://localhost:8000 - - (1)

Errors: (1) “Timed out retrying after 4000ms: Expected to find element: #android_location, but never found it.” (2) “Timed out after waiting 100000ms for your remote page to load. Your page did not fire its load event within 100000ms.”

This information is added to the OP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Applicant FAQs | GRANTS.GOV
Frequently Asked Questions by Applicants. Unique Entity Identifier (UEI); Apply using Workspace; Attachments; Filling Out Forms; Support Center ...
Read more >
Legacy Link: Home
We are your Aging and Disability Resource connection. We provide advocacy for older adults, planning, and administration of programs through the Department of ......
Read more >
Links report - Search Console Help - Google Support
See who links to you the most, your top-linked pages, and more. Open the links report.
Read more >
Internet Explorer (IE) mode troubleshooting and FAQ
Troubleshooting guide and FAQ for Microsoft Edge Internet Explorer mode.
Read more >
Developer FAQ - Meta for Developers - Facebook
How do I embed GIF images? · Can I link multiple pages to a single RSS feed? · How do I embed a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found