Skip to main content
deleted 10 characters in body
Source Link
Sal
  • 25
  • 3

I created a VF page which uses static resources styles. The cache control property is set to public. Every thing is displaying for me.

But for end users stylestyles are not getting applied for external users, as url is changing when they access that page from community.

So my question is how to add static resources in VF page so that they can be accessed even the url changes. Is it possible ?

Here is my code:

<link rel="stylesheet" href="/resource/cssDesigns/CssStyles/style.css"/>   
<link rel="stylesheet" href="/resource/cssDesigns/CssStyles/home.css"/>

I created a VF page which uses static resources styles. The cache control property is set to public. Every thing is displaying for me.

But for end users style are not getting applied for external users, as url is changing when they access that page from community.

So my question how to add static resources in VF page so that they can be accessed even the url changes. Is it possible ?

Here is my code:

<link rel="stylesheet" href="/resource/cssDesigns/CssStyles/style.css"/>   
<link rel="stylesheet" href="/resource/cssDesigns/CssStyles/home.css"/>

I created a VF page which uses static resources styles. The cache control property is set to public. Every thing is displaying for me.

But styles are not getting applied for external users, as url is changing when they access that page from community.

So my question is how to add static resources in VF page so that they can be accessed even the url changes. Is it possible ?

Here is my code:

<link rel="stylesheet" href="/resource/cssDesigns/CssStyles/style.css"/>   
<link rel="stylesheet" href="/resource/cssDesigns/CssStyles/home.css"/>
added 97 characters in body
Source Link
Sal
  • 25
  • 3

I created a VF page which uses static resources styles. The cache control property is set to public. Every thing is displaying for me. 

But for end users style are not getting applied for external users, as url is changing when they access that page from community.

So my question how to add static resources in VF page so that they can be accessed even the url changes. Is it possible ?

Here is my code:

<link rel="stylesheet" href="https://mylightpackage-dev-ed.my.salesforce.comhref="/resource/cssDesigns/CssStyles/style.css"/>   
<link rel="stylesheet" href="https://mylightpackage-dev-ed.my.salesforce.comhref="/resource/cssDesigns/CssStyles/home.css"/>

I created a VF page which uses static resources styles. The cache control property is set to public. Every thing is displaying for me. But for end users style are not getting applied for external users.

Here is my code:

<link rel="stylesheet" href="https://mylightpackage-dev-ed.my.salesforce.com/resource/cssDesigns/CssStyles/style.css"/>   
<link rel="stylesheet" href="https://mylightpackage-dev-ed.my.salesforce.com/resource/cssDesigns/CssStyles/home.css"/>

I created a VF page which uses static resources styles. The cache control property is set to public. Every thing is displaying for me. 

But for end users style are not getting applied for external users, as url is changing when they access that page from community.

So my question how to add static resources in VF page so that they can be accessed even the url changes. Is it possible ?

Here is my code:

<link rel="stylesheet" href="/resource/cssDesigns/CssStyles/style.css"/>   
<link rel="stylesheet" href="/resource/cssDesigns/CssStyles/home.css"/>
Source Link
Sal
  • 25
  • 3

Styles are not displaying for End Users on Vf page

I created a VF page which uses static resources styles. The cache control property is set to public. Every thing is displaying for me. But for end users style are not getting applied for external users.

Here is my code:

<link rel="stylesheet" href="https://mylightpackage-dev-ed.my.salesforce.com/resource/cssDesigns/CssStyles/style.css"/>   
<link rel="stylesheet" href="https://mylightpackage-dev-ed.my.salesforce.com/resource/cssDesigns/CssStyles/home.css"/>