0

I have a custom page in /web/blog and I want to create a link to forward to it. How can I do this ? I have tried many things but none of them works, like

<a href="{{ path('homepage') | '/blog' }}" title="" >{{ 'menu.blog'|trans }}</a>

or

<a href="{{ path('homepage') }}/blog" title="" >{{ 'menu.blog'|trans }}</a>

2 Answers 2

1

I don't know why but the right answer is :

<a href="{{ path('homepage') }}{{ 'blog' }}">
Sign up to request clarification or add additional context in comments.

1 Comment

Heh... That's was much simpler than I thought! Thanks for sharing
0

i use

<a href="{{ path('homepage')}}/{{blog}} title="">

@Adam solution is right

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.