spank icon indicating copy to clipboard operation
spank copied to clipboard

multiple folders when building with routify's $url

Open onumahkalusamuel opened this issue 3 years ago • 2 comments

Firstly, I must commend your amazing works. They've made life easier.

When I use routify's helper function $url to generate links, spank goes on to generate multiple recursive folders and files. When I use normal href, it works fine. Something like:

── register │   ├── contact-us │   │   ├── contact-us │   │   │   └── index.html │   │   ├── index.html │   │   ├── privacy-policy │   │   │   └── index.html │   │   └── terms │   │   └── index.html │   ├── index.html │   ├── privacy-policy │   │   ├── contact-us │   │   │   └── index.html │   │   ├── index.html │   │   ├── privacy-policy │   │   │   └── index.html │   │   └── terms │   │   └── index.html

Please, look into it at your convenience. The workaround is to have normal

<a href='/take-me-home'>...</a>

instead of

<a href={$url('take-me-home')}>...</a>

Thanks.

onumahkalusamuel avatar Apr 22 '21 07:04 onumahkalusamuel

@onumahkalusamuel sorry I only saw your issue now.

Do you have a route named take-me-home? By named I mean a file with the following metadata:

<!-- routify:options name="take-me-home" -->

jakobrosenberg avatar May 03 '21 12:05 jakobrosenberg

No metadata in the file. Just file named take-me-home.svelte

onumahkalusamuel avatar May 03 '21 13:05 onumahkalusamuel