You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hover over the HTMLTimeElement constructor on the left side. The link is the following:
https://pub.dev/documentation/web/web/HTMLTimeElement/HTMLTimeElement.html - link
https://pub.dev/documentation/web/latest/web/HTMLTimeElement/HTMLTimeElement.html - original
You can see that the /latest/ segment got "swallowed" by the linking. The root cause can be seen in the next case:
Case 3: local reproduction:
with a minimal pubspec and a very simple library:
extension typeIdNumber(int id) {
// Wraps the 'int' type's '<' operator:operator<(IdNumber other) => id < other.id;
}
classOptions {
Options();
}
While the regular class relative linking starts with the library folder, the extension type's start with one directory up. I think the fix should be to start with the same way as the regular class does.
Notes
Local testing with a simple HTTP server works, because ../../../../../ won't cause an issue, it will resolve to the root, regardless of the levels going up.
The text was updated successfully, but these errors were encountered:
Case 1: SDK API docs
https://api.dart.dev/stable/3.3.0/dart-js_interop/JSObject/JSObject.html
JSObject
under constructors. It will link to https://api.dart.dev/stable/dart-js_interop/JSObject/JSObject.htmlapi.dart.dev
redirects you again to the URL in the first point.Also visible via curl -v:
Case 2: pub.dev docs:
HTMLTimeElement
constructor on the left side. The link is the following:You can see that the
/latest/
segment got "swallowed" by the linking. The root cause can be seen in the next case:Case 3: local reproduction:
with a minimal pubspec and a very simple library:
Observe the generated files:
While the regular class relative linking starts with the library folder, the extension type's start with one directory up. I think the fix should be to start with the same way as the regular class does.
Notes
Local testing with a simple HTTP server works, because
../../../../../
won't cause an issue, it will resolve to the root, regardless of the levels going up.The text was updated successfully, but these errors were encountered: