Skip to content

Commit 84e564a

Browse files
authored
PathPackage and asset with absolute path
Use relative asset path to match expected result.
1 parent b501c41 commit 84e564a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/asset.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ document inside a template::
335335
echo $packages->getUrl('/logo.png', 'img');
336336
// result: http://img.example.com/logo.png?v1
337337

338-
echo $packages->getUrl('/resume.pdf', 'doc');
338+
echo $packages->getUrl('resume.pdf', 'doc');
339339
// result: /somewhere/deep/for/documents/resume.pdf?v1
340340

341341
Learn more

0 commit comments

Comments
 (0)