Discussions
link_to single page not working
Hi,
I'm trying to use the [link_to liquid tag](https://doc.locomotivecms.com/docs/tags#link_to).
The doc makes it seem very simple, but I just can't manage to make it work.
I have a page called "ecosysteme" (that's its slug and handle) and i simply wrote :
```
{% link_to ecosysteme %}
```
According to the doc this should generate something like `<a href="/path/to/ecosysteme">Écosystème</a>
` but nothing is displayed when i use it. What have I done wrong ?
Posted by Grégoire Colson over 2 years ago
Forcing site-goers to login, question
Hello,
I'm an admin trying to debug something going on the locomotive CMS for a client. The issue I'm facing is that after clicking a link on the preview/mysite, it redirects to the login screen for https://station.locomotive.works/_app/sign_in
All of the pages' published status is set to "published" in the CMS so I'm really not sure why this behaviour is occuring.
I would like to take the site live (point the domain to locomotive), but I'm not sure if the behaviour would carry over, and if it does that would be a significant problem.
I would be happy to provide the exact website in an e-mail, but let me know if this behaviour is intended across your hosted sites, or might be case-specific to my site for some reason.
Thank you
Posted by Ryon almost 3 years ago
Path_to single entry
Hey!
So I'm doing first steps, the basic stuff. And I'm stuck on this step – https://locomotive-v3.readme.io/docs/use-them-in-templates. Path_to link to a single entry generates empty space and thus the link just reloads the page we're on. I checked docs and my code like 10 times, I don't get what I'm doing wrong and where's the problem.
Any help and advice would be much appreciated.
Posted by Vlad Arbatov about 7 years ago
path_to result is empty
I have been trying to setup a nav bar in my app (actually migrating locomotivehosting.com to this). I can't get the path_to function to return anything useful.
I have page with the handle of "products". I have tried these with all of them returning nothing.
I have tried these variations.
{% path_to products2 %}
{% path_to 'products2' %}
{{ path_to products2 }}
{{ path_to 'products2' }}
Posted by David Cook over 7 years ago