URL Length Limitation in Menu Item(Istanbul)

kailashthiyagar
Kilo Guru

I m trying to add the itss URL (catalog item) to the menu item.. But the URL is getting cut off due to the limit in the length.

Here are the options which i chose for Menu item

RedirectTo --> Specified URL

URL --> Provided the ITSS url but its getting cut down...

How do i redirect from my CMS page to the catalog item using the menu option... ? Should i be using content page.? in that case the catalog item would appear in that page itself, right.

abhinay b-rad ctomasi pradeepksharma

1 ACCEPTED SOLUTION

swarnadip
ServiceNow Employee
ServiceNow Employee

Hi,



As drbz said, please check the above link. It says:



The URL type field hides the Max Length field on the Dictionary form by default due to a UI Policy. Browsers support URL length up to 2,083 characters


The URL field is just a String field in terms of data type. Modifying String fields to larger Max Length is a simple process of changing the value of the Max Length field.


https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/reference-pages/task...



So all you need to do is get around the UI Policy. To do this do the following:


1. Open the Dictionary record for the URL field


2. Change the Type to "String" (don't save yet)


3. The Max Length field will appear.


4. Change the Max Length to 2,083 (or whatever you want)


5. Change the Type back to URL


6. Now you can save your changes.



Thanks,


SR


View solution in original post

2 REPLIES 2

drbz
Mega Expert

Hi Kailash,



please check following thread:



Size of an URL field used in a Menu Item


swarnadip
ServiceNow Employee
ServiceNow Employee

Hi,



As drbz said, please check the above link. It says:



The URL type field hides the Max Length field on the Dictionary form by default due to a UI Policy. Browsers support URL length up to 2,083 characters


The URL field is just a String field in terms of data type. Modifying String fields to larger Max Length is a simple process of changing the value of the Max Length field.


https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/reference-pages/task...



So all you need to do is get around the UI Policy. To do this do the following:


1. Open the Dictionary record for the URL field


2. Change the Type to "String" (don't save yet)


3. The Max Length field will appear.


4. Change the Max Length to 2,083 (or whatever you want)


5. Change the Type back to URL


6. Now you can save your changes.



Thanks,


SR