Erison Silva
Erison Silva
> > Really? I don't remember to change something inf Block::page > > Since we're adding typehint, you'll need to add some too. Composer is asking you to change `$page`...
> It is strange that you have declared page property on your entity, Can you show that piece of code? I'm not in the computer atm, but my entities were...
Hey @core23 I saw that [Resources/views/base_layout.html.twig](https://github.com/sonata-project/SonataPageBundle/blob/3.x/Resources/views/base_layout.html.twig) was already checked as solved, But do you know which PR was it done 👀
Hey @mesiarm I use multi site in my project too, but for dynamically routes, I create an action in a controller (a normal symfony's action) to manager this route! But...
> When I try debug method matchRequest in Sonata\PageBundle\Site\BaseSiteSelector `$site->getRelativePath()` returns `"/"` `sprintf('@^(%s)(/.*|$)@', $site->getRelativePath())` returns `"@^(/)(/.*|$)@"`, and `$requestPathInfo` contains `"/project/example/"`. Preg_match doesn´t match anything. Is regex correct? > > ```...
> Just to mention that I have done something like this: #1368 Hi @haivala thanks for share your issue here :) But definitely we need more documentation about this, should...
> So if default site relative path cannot be / - is it bug or is it intended? Can't it be "/" or "/-"? If you mean it can't be...
> I mean only / (without dash). I wanted to use / for default site and /en for English site. Well if you can't use with / and /en ,I...
> Just to clarify: /en works, /anything works, but / doesn´t. Regex is sprintf('@^(%s)(/.*|$)@', $site->getRelativePath()) I guess you can create a site with relativePath = null
> correction - I tried it with null and it works (probably due `$request->setPathInfo($pathInfo ?: '/');` in Sonata\PageBundle\Site\HostPathSiteSelector) . It should be corrected in documentation https://docs.sonata-project.org/projects/SonataPageBundle/en/3.x/reference/getting_started/ because there is stated...