Base URLs being hard-coded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2015 12:57 PM
I have a catalog item that has links to other catalog items in its description. I have the URL set to:
<a href="/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=9dae75af64fb2100d7996e733ffe65e1&amp;sysparm_link_parent=306c436b800f1180d799224de81d1b14&amp;sysparm_catalog=e0d08b13c3330100c8b837659bba8fb4&amp;sysparm_catalog_view=catalog_default">
But when I save the catalog and go back to view the HTML source, the base URL of the current instance is put into the URL at the beginning. It's not a show stopper for me to move forward, but it's a tedious task to go in an manually update the URLs in this catalog item (There are 10 altogether). I removed the base URL so that I can carry this catalog item among our instances without having to do manual steps. Any ideas why this happens? Could it be due to this system property: glide.ui.html.editor.remove_host? We have it set to false.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2015 10:57 PM
Think it should work just fine if you are moving your catalog items to the other instances... Have you tried moving atleast one?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2015 06:16 AM
Kalaiarasan,
Yes, I have moved the item and that's how I noticed the URLs were being hardcoded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2015 12:15 AM
Hi Blair,
If i understand you correctly...your issue is the base url being picked automatically and hence you thing when you move you items it will have the base url of a different instance(the one you developed items on). If this is right, why dont you just create the whole URL
gs.getProperty('glide.servlet.uri') --> this will give you the base url of the current instance. use it to get the base url and append the rest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2015 06:17 AM
Anurag,
That was my thoughts, but I was unsure of how to do that in the HTML of the catalog item. I'll see if I can get that to work.