Open
Description
Here is the relevant code that was copied to dwds. Here is the code in dwds:
webdev/dwds/lib/src/loaders/require.dart
Lines 36 to 46 in 3ad544e
We got a report from a user seeing this issue (and I was able to reproduce it, too): flutter/flutter#116360 (comment)
Basically, their app has a path "/sample_item/test/", it trips the generated bootstrap code into thinking that it's in test mode, and it calculates the wrong baseUrl
.