Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 0385717

Browse files
TedSanderchirayuk
authored andcommitted
feat(referened_uris): allow rewriting of relative URLs
Combine urls first and then rewrite them. Allowing end results to be rewritten to match allow the template cache to be matched. Closes #1698
1 parent c7a3021 commit 0385717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tools/transformer/referenced_uris.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ class _Processor {
203203
}
204204

205205
_CacheEntry uriToEntry(String uri, Element reference) {
206-
uri = rewriteUri(uri);
207206
uri = urlResolver.combineWithElement(reference, uri);
207+
uri = rewriteUri(uri);
208208
if (Uri.parse(uri).scheme != '') {
209209
warn('Cannot cache non-local URIs. $uri', reference);
210210
return null;

0 commit comments

Comments
 (0)