Skip to content

Commit

Permalink
fix: add trailing slash to assets_path()
Browse files Browse the repository at this point in the history
Until issue #28 is solved properly we have to add a trailing slash to the assets_path to access the assets independend from the current path
  • Loading branch information
dnnsjrng committed Jun 2, 2022
1 parent d903857 commit 1f1a0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shortcodes/assetPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
* @returns {string}
*/
module.exports = (eleventyConfig, userOptions) => {
return userOptions.assets.base;
return `/${userOptions.assets.base}`;
};

0 comments on commit 1f1a0ac

Please sign in to comment.