Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

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

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