Solved

Is it possible to redirect the page to other page...

Posted on 2010-09-02
2
405 Views
Last Modified: 2012-06-21
Usually in Sharepoint after you edit an item in the custom list you will be redirected to the allitems.apsx page, is it possible to redirect the page to other page instead to allitem.aspx page after editing an item in custom list? I want it to redirect to default.aspx page instead.


CustomList.png
0
Comment
Question by:PagodNaUtak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
nipunu earned 250 total points
ID: 33594243
0
 
LVL 15

Assisted Solution

by:dp_expert
dp_expert earned 250 total points
ID: 33594447
The simplest method is to create (with content editor web part) a custom link to the "newform.aspx" - simply add "?source=/default.aspx" after the newform.aspx and sharepoint will take of the rest.
More fail-proof method would be editing the newform.aspx page and adding javascript that would detect if you have the ?source=/default.aspx in the url and if not would redirect to address with the "?source" - this way page would add the "source" script itself so no matter where you came from it would redirect correctly.

<script type="text/javascript"> 
if(window.location.href.indexOf('?source=/default.aspx')<1) {window.location=window.location.href+'?source=/default.aspx';}
</script>

Open in new window

0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question