Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Login screen displays without CSS



Authentication through LDAP for the Pega 7 environment is configured. Servlet PRWebLDAP1 is used. When navigating to the URL of servlet PRWebLDAP1, the login screen is displayed without CSS. After logging in and logging out, the login page displays with CSS.

Error Messages

Not Applicable

Steps to Reproduce

Navigate to the login page.

Root Cause

User is attempting to access the CSS file through a URL which is not standard: http://machine:port/prweb/webwb/file.css

A standard URL should be used such as below:



There are two possible solutions for this.
  • Add the setting "prconfig/Authentication/RedirectGuests" to the prconfig.xml or change it from "false" to "true". From the documentation:
Type: boolean
Default: True
Functionality: Process Commander sends information between the server and the client (browser) using URLs. These URLs can contain “query strings” which display calls to activities in the system or output streams of data.

For Example:
/prweb/PRServlet/PCKVSeY1NqMu72E9CQuRw%5B%5B*/!Developer?pyActivity=ShowStream&pyBasePage=pyPortal&pyTargetStream=FramesetDeveloper HTTP/1.1

PegaRULES typically redirects guests to the standard URL format above in preparation for interactive authentication. Not all authentication schemes require this; if your authentication scheme does not require interaction, set this entry to false to reduce network traffic.
NOTE: If the initialization setting NodeType is set to “web”, the default of the RedirectGuests setting changes to false.
In short, this will cause PRPC to redirect to the standard URL which contains the hash (for instance PCKVSeY1NqMu72E9CQuRw%5B%5B*). Then the CSS will be retrieved using the right URL.
  • Find the location where CSS is referenced and ensure it is referenced using a standard URL.
For instance, the code below ensures the access to winloginbackground.png is using a standard URL.
background-image: url(<pega:reference name="pxThread.pxReqURI" mode="normal" />/webwb/desktopimages/winloginbackground.png); 
A CSS file is typically referenced in the “web-login html” rule (or any rule referenced by it).
Check where the CSS file is referenced and change the way the CSS file is referenced to use a standard URL.
Suggest Edit

Published September 29, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us