Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple folders when building with routify's $url #11

Open
onumahkalusamuel opened this issue Apr 22, 2021 · 2 comments
Open

multiple folders when building with routify's $url #11

onumahkalusamuel opened this issue Apr 22, 2021 · 2 comments

Comments

@onumahkalusamuel
Copy link

onumahkalusamuel commented Apr 22, 2021

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.

@jakobrosenberg
Copy link
Member

@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" -->

@onumahkalusamuel
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants