CSS and relative URLs

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
10/11/2010 12:13:11 PM
Total Posts 2

CSS and relative URLs

I've been using mojoPortal as a small info site for my company's vendors and I ran into a small problem.

When accessed through my LAN Mojo works pretty well but my company has a firewall/bridge in order to access some exposed servers.

The outsiders must connect using HTTPS to the firewall and this equipment maps the address and bridge the communication to the mojoPortal server using regular HTTP and a local address.

In that particular scenario Mojo receives a local request.

The outsiders are able to see all portal's content, but background images are not shown. The problem is that Mojo maps image references in the CSS, lets say


to a full URL

url('http://myLocalIP:myLocalPort/mojoportal/Data/style/... /image.jpg')

which of course is not visible from outside.

I've seen that regular content images have not that problem, since they are mapped to a relative address that can be resolve both outside and inside company's LAN.

Is it possible to configure Mojo in order to map CSS URLs to a relative address?

In the example above it would be: url('/mojoPortal/Data/style/.../image.jpg').

10/11/2010 12:17:57 PM
Total Posts 18439

Re: CSS and relative URLs

I think you are using an older version. The latest version of mojoPortal does use relative urls in the css handler.

Hope it helps,


10/11/2010 12:36:46 PM
Total Posts 2

Re: CSS and relative URLs

I'm using MSSQL

I'll test latest version right away and report.


You must sign in to post in the forums. This thread is closed to new posts.