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

Commit

Permalink
feat(referened_uris): allow rewriting of relative URLs
Browse files Browse the repository at this point in the history
Combine urls first and then rewrite them. Allowing end results to be rewritten
to match allow the template cache to be matched.

Closes #1698
  • Loading branch information
TedSander authored and chirayuk committed Mar 31, 2015
1 parent c7a3021 commit 0385717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tools/transformer/referenced_uris.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ class _Processor {
}

_CacheEntry uriToEntry(String uri, Element reference) {
uri = rewriteUri(uri);
uri = urlResolver.combineWithElement(reference, uri);
uri = rewriteUri(uri);
if (Uri.parse(uri).scheme != '') {
warn('Cannot cache non-local URIs. $uri', reference);
return null;
Expand Down

0 comments on commit 0385717

Please sign in to comment.