How to redirect document library to another document library

Dear Experts,

How can I redirect document library to another document library in SharePoint 2013
Example:
1. Document Library Name      User shared Folder
2. Document Library Name      Public Shared Folder      

 We would like to redirect User shared Folder to Public Shared Folder. Whenever we open User shared Folder Library it should open Public Shared Folder Library. User Shared Folder is located in main page and public shared folder library is located in sub site. Please advice.

Thanks
tabreedAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jamie McAllister MVPSharePoint ConsultantCommented:
In the past I did this with script. We had an older library some people had bookmarked.

So, we edited the page of the default view and added a Content Editor Web Part.

This script was added to the CEWP;

<script type="text/javascript">
window.location.replace(yourNewLibraryUrl);
</script>

Open in new window


If you subsequently need to change this you'll need to remove the web part again. To do this, add ?contents=1 to the end of the page url, and you'll get the web part management page that allows you to close the content editor WP and make page changes.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tabreedAuthor Commented:
thank you so much
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.