function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
alvatsealvatse 

URL No Longer Exists errow when clicking custom button with S-Control

Hi, we built a custom button within the Case details page with the following S-control codes. The button is supposed to let user close Case on the same page without going to the Close Case screen, and then send out an email to the Customer Contact about the case being closed. It was working up till yesterday, and now the user gets "URL No Longer Exists" error (see screenshot) after clicking the custom button. However, the Case still gets closed.

 

 

 

<!-- begin code -->
<!-- replace 'Closed' (without quotes) in the code below with the Status desired for case closure -->

<html>
<head>
<script src="/soap/ajax/8.0/connection.js"></script>
<script src="/desktop/desktopApi.js"></script>

<script>
function init() {

var desktop = new DesktopApi();
if (desktop.desktopPageWindow)
{
window.parent.location.href = "/{!Case.Id}/s?save=1&notifyContact=0&cas7=Closed&&#8203;isdtp=mn&nooverride=1&retURL=/{!Case.Id}";
} else {
window.parent.location.href = "/{!Case.Id}/s?save=1&notifyContact=1&cas7=Closed&&#8203;nooverride=1&retURL=/{!Case.Id}";
}
}
</script>
</head>
<body onload="init()">
<p>&nbsp;</p>
</body>
</html>

<!-- end code -->

 Error:

URL No Longer Exists
You have attempted to reach a URL that no longer exists on salesforce.com. 

You may have reached this page after clicking on a direct link into the application. This direct link might be: 
• A bookmark to a particular page, such as a report or view 
• A link to a particular page in the Custom Links section of your Home Tab, or a Custom Link 
• A link to a particular page in your email templates 

If you reached this page through a bookmark, you are probably trying to access something that has moved. Please update your bookmark. 

If you reached this page through any of the other direct links listed above, please notify your administrator to update the link. 

If you reached this page through a link on our site, please report the broken link directly to our Support Team and we will fix it promptly. Please indicate the page you were on when you clicked the link as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com!

Any idea what could be causing this? Thanks in advance.