Answered by:
How to redirect all mysite links to different url

Question
-
We have a request to make mysite available in extranet while maintaining the intranet mysite as well. I have extended mysite but the challenge is we have couple other extranet web applications. When users click on OneDrive for business they are redirecting to intranet mysite. Is there a way (JavaScript, C#, IIS redirect, Master page and etc) to change all those links to extranet mysite for current and future site collections?
- Edited by F1365 Friday, October 28, 2016 1:56 PM
Friday, October 28, 2016 1:55 PM
Answers
-
Hi,
I suggest you change the Onedrive button hyperlink in extranet site by coding.
You can add the following code in master page to achieve your requirement via SharePoint Designer 2013:
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <script type="text/javascript"> $(document).ready(function() { setTimeout(ready, 1000); }); function ready() { $("#ctl00_ctl54_ShellDocuments").attr("href","<your extranet mysite URL>"); } </script>
Thanks,
Dean Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Proposed as answer by Victoria Xia Monday, November 7, 2016 12:18 PM
- Marked as answer by Victoria Xia Friday, November 11, 2016 5:50 AM
Wednesday, November 2, 2016 9:57 AM
All replies
-
Please check if it is useful fo ryou
https://mariuszgorzoch.wordpress.com/2014/01/23/changing-my-site-host-url-in-sharepoint-2013/
https://social.technet.microsoft.com/Forums/office/en-US/daee15b2-1ea2-4c6c-9f90-56bf8ee5d675/redirect-from-mysite-personaspx-to-different-site?forum=sharepointgenerallegacy
Please remember to click Mark as Answer on the answer if it helps you
Friday, October 28, 2016 7:12 PM -
Sorry these are not what i am looking. I don't want to change the default location of mysite. what I want to be able change all mysite url on extranet site to go extranet mysite page instead of intranet. Something similar with Office 365 hybrid which you can specify an audience to redirect all mysite url to Office 365 but instead of audience i want to be the entire web application.Tuesday, November 1, 2016 1:28 PM
-
Hi,
I suggest you change the Onedrive button hyperlink in extranet site by coding.
You can add the following code in master page to achieve your requirement via SharePoint Designer 2013:
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <script type="text/javascript"> $(document).ready(function() { setTimeout(ready, 1000); }); function ready() { $("#ctl00_ctl54_ShellDocuments").attr("href","<your extranet mysite URL>"); } </script>
Thanks,
Dean Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Proposed as answer by Victoria Xia Monday, November 7, 2016 12:18 PM
- Marked as answer by Victoria Xia Friday, November 11, 2016 5:50 AM
Wednesday, November 2, 2016 9:57 AM -
Hi,
Is there any update?
If my reply is helpful to you, you can mark as answer.
Thanks,
Dean Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.comThursday, November 3, 2016 11:06 AM -
Thank you Dean. Let me try your solution and I will update this post with my findings.Thursday, November 3, 2016 1:54 PM