Dynamic glide.servlet.uri System Property

Brian Bush
Giga Guru

We use a reverse proxy with an internal URL as well as the standard external *.service-now.com URL. I would like the glide.servlet.uri (property used to generate permalinks) to be set to a dynamic value like this: javascript:location.href.substring(0, location.href.indexOf("?")); It doesn't work. Does anyone know of a way to force it to evaluate the javascript?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Brian,



As far as I know, properties are meant to be static values (hence the reason they are cached for performance reasons.) The only way to make this dynamic is to script it where ever the property is used. While this may be possible in some places (e.g. notifications or business rules) it's not always accessible to the customer.


View solution in original post

10 REPLIES 10

People solve this issue in a lot of different ways. You should try posting a new discussion to get an in-depth conversation going.




For us, we are integrated with an SSO solution, so there is a single-sign-on script called MultiSSO_SAML2_Update1 that is run on login. It calls a function setActionRedirectURL. You can add some custom code there to set the base url to your portal. In our case, we created a custom table to direct users to various pages or portals based on their roles.