router icon indicating copy to clipboard operation
router copied to clipboard

How to use a link checker like Lychee with Vaadin Router wildcards

Open Canuckaholic opened this issue 2 years ago • 0 comments

We have a SPA that uses Vaadin Router and would like to employ a broken link checker like Lychee (https://github.com/lycheeverse/lychee), but we have a wildcard in the router to send users to a friendly "page not found" page.

path: '(.*)'

It looks like broken link checkers just look for 404s being returned, but with the wildcard any URL is going to return a 200.

Any ideas on how to get the router (with wildcards) working with a link checker?

Canuckaholic avatar Mar 25 '22 22:03 Canuckaholic