Michal Mäsiar

Results 29 comments of Michal Mäsiar

> > 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 I...

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 default...

> > 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...

It is something in ResponseListener:onCoreResponse. Anyone understands what decorate = true means? It is also here: https://docs.sonata-project.org/projects/SonataPageBundle/en/3.x/reference/advanced_configuration/ but without explanation

``` // only decorate hybrid page or page with decorate = true if (!$page->isHybrid() || !$page->getDecorate()) { return; } $parameters = [ 'content' => $response->getContent(), ]; $response = $this->pageServiceManager->execute($page, $request,...

Anyone who understands when decoration should be used and which of the pair: comment and code is correct? ``` // only decorate hybrid page or page with decorate = true...

> ## Feature Request > I'm using multisite `host_with_path` and I have Symfony route that is updated as Dynamic page with `update-core-routes`. Meaning that I have 2 routes: `/example/{slug}` and...

> I don't see why it is a problem to insert the page blocks twice. Sometimes it does not even make sense to make the same page in another language...

> duplicate blocks sounds not like a good approach shared blocks would help a little, but when I was creating page for another locale I would still need assign all...