I got a StartSite.aspx. I have some Web Parts on that site (news feed).

This web part - Template has a "Close" Button.

After closing an object, I navigate to AllItems.aspx

Isn't it possible to change the url of the button to the mainsite? (StartSite.aspx)

  • Please set default page and also check button type="button" Oct 29, 2016 at 17:52

1 Answer 1


I'm new as well, but I've seen this issue pop up before.

You can try this:

Step 1) Hide the exising close button by adding a Content Editor Web Part to the DispForm.aspx Page

Step 2) Add the below style and JavaScript function to the source editor of the Content Editor Web part

/*- hide the Exisiting close button -*/

<script type="text/javascript">
function redirectnews()
 window.location = "http://www.google.com"

<td align="right">
<input type="button" value="Close" width="150"

If the above didn't work for you, try checking out this link, what you want to do is setup a URL redirect.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.