I have a problem with generating relative URL in symfony 2.7 project
My project is hosted behind a proxy that redirect URL to the target VM, like this - example.com/oblounge/bo/ to vmhostname/
All my URL are generated in relative
Here is my problem
For example when I'm on this page
http://example.com/oblounge/bo/admin/articles/actualite?section=127
All generated likns are malformated, the "/admin/articles" is duplicated
http://example.com/oblounge/bo/admin/articles/admin/articles/actualite?section=127
Note: The problem is occurred only for rendered controllers
The render action
{{ render(controller('AppBundle:Back/Article/Article:sectionsArticle', { 'rubric': 'actualite' })) }}
The rendered twig
{% for section in sections %}
<li><a href="{{ path('back_post_list', {'rubric': 'actualite'}) }}?section={{ section.iden }}"><i class="fa fa-circle-o"></i>{{ section.name }}</a></li>
{% endfor %}
My routing.yml
app:
resource: "@AppBundle/Controller/"
type: annotation
The prefix of my admin controller
/**
* @Route("/admin")
*/
class ArticleController extends BaseArticleController
{