Using baseurl in patterns
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- html
- Domain
- frontend
Research direction
Start with the default template and the pattern rendering path that expands @root.baseurl; reproduce the shown output for assets/toolkit/images/icons.svg. Done means the generated href uses ../../assets/... rather than ../../../assets/... without hard-coding directory levels.
Written by the indexing model from the issue text.
Description
I saw in the default template {{@root.baseurl}} so I tried to use it in a pattern to point to icons that I added to the assets directory. Using it here adds an extra ../. From what I can tell this happens because @root is the initial context that the template was executed in. Is there a way to use this in a pattern that I am just not seeing or do I have to hard code the directory levels?
I'm using it like this:
<use xlink:href="{{@root.baseurl}}/assets/toolkit/images/icons.svg#{{icon}}" />
and getting
<use xlink:href="../../../assets/toolkit/images/icons.svg#bell" />
when I should get
<use xlink:href="../../assets/toolkit/images/icons.svg#bell" />
- Dominant language
- HTML
- Stars
- 662
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudfour/drizzle
-
ui
Difficulty 2/5 Under an hour Newbie friendliness 65/100
-
ui
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
enhancement ui
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in cloudfour/drizzle
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#165 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·