A few issues, but they all seem to be related to base definition.
A) Defining base causes error
Placing any value of base in main.html will produce the following error:
<base href="/">
errors.dart:297 Uncaught Error: RangeError (startIndex): Invalid value: Only valid value is 0: 1
at Object.throw_ [as throw] (errors.dart:297:3)
at RangeError.checkValueInInterval (errors.dart:312:7)
at [dartx.replaceFirst] (js_string.dart:86:16)
at Object.canonicalUri (path_utils.dart:123:16)
at matching.RouteMatcher.new.findMatch (matching.dart:22:31)
at parser.RouteInformationParser.new.parseRouteInformation (parser.dart:42:32)
at [_matchRoute] (router.dart:194:30)
at router$.RouterState.new.initRoutes (router.dart:99:49)
at router$.RouterState.new.initState (router.dart:84:7)
The only way to resolve this is to comment out <base href="/"> from main.html. Although, this works, I suspect it causes other downstream issues - see below.
B) Refresh on nested routes
Now without any base defined (due to issue above), when I try to refresh on a nested route, for example:
http://localhost:4322/group/htIWKNGNpNgrDJ6aXBMP
I will get the following error:
It looks like the lack of a base definition is now improperly resolving the root path. In this case, it is looking for components/app.client.dart.js in the wrong location.
Description
A few issues, but they all seem to be related to
base
definition.A) Defining
base
causes errorPlacing any value of
base
inmain.html
will produce the following error:The only way to resolve this is to comment out
<base href="/">
frommain.html
. Although, this works, I suspect it causes other downstream issues - see below.B) Refresh on nested routes
Now without any
base
defined (due to issue above), when I try to refresh on a nested route, for example:I will get the following error:
It looks like the lack of a
base
definition is now improperly resolving the root path. In this case, it is looking forcomponents/app.client.dart.js
in the wrong location.Steps To Reproduce
Need to put something together.
Doctor Output