Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using backend.xml and VHM on a subfolder #96

Open
lyralemos opened this issue Mar 17, 2016 · 3 comments
Open

Using backend.xml and VHM on a subfolder #96

lyralemos opened this issue Mar 17, 2016 · 3 comments

Comments

@lyralemos
Copy link

When I use backend.xml like this (in my theme):

<xi:include href="./++theme++barceloneta/backend.xml" />

and publish the site in a "subfolder" (using Virtual Host Moster), like this:

http://somesite.com/plonesite/

Everything works great except that barceloneta-compiled.css doesn't load because backend.xml defines it like this:

<after css:theme-children="head">
    <link rel="stylesheet" href="/++theme++barceloneta/less/barceloneta-compiled.css" />
</after>

Notice the forward slash! So what is supposed to be this:

http://somesite.com/plonesite/++theme++barceloneta/backend.xml

turns into this:

http://somesite.com/++theme++barceloneta/backend.xml

Can you see the problem?

@davilima6
Copy link
Member

A possible fix would be to define a $portal_url Diazo/xslt variable and use it to generate the correct absolute url. The downside is that this would be the first variable in Barceloneta's manifest.cfg and that won't even be used in main rules.xml.

Another solution would be to just remove the initial slash from backend.xml link tag but I'm not sure this wouldn't impact caching (different URLs only working because of Acquisition).

@2silver
Copy link

2silver commented Aug 1, 2023

See this Issue #340 or this Pull Request #341

(just for Information)

@Ananyasingh2002
Copy link

Please merge my branch that resolves issue #96,
where I changed the stylesheet path from an absolute one (starting with "/") to a relative path (starting with "./").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants