SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)

share|improve this question

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 = ""

<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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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