You can change the URL of a SharePoint 2013 List in Designer by following the steps outlined in this SO post:
Change SharePoint Library URL
In SharePoint Designer just navigate to All Files navigation node (not List and Libraries node), find your list there -> right-click list -> rename.
The URI would change then.
There are a couple of methods for this available in the object model without the need to handle the slashes etc yourself, one method using MakeFullUrl:
var fullUrl = item.ParentList.ParentWeb.Site.MakeFullUrl(item.ParentList.DefaultDisplayFormUrl);
A string that specifies the
If I only want to download the stream of the file then the ClientContext object isn't that picky about the website url. The file can be easily downloaded and written to a file.
Uri filename =
string server = filename.AbsoluteUri.Replace(filename.AbsolutePath, "");
Ok, I got the formatting right. The first reply was correct from Aboba with the link to the blog post. I just didn't have the formatting right the first time.
I ended up with
<a onclick="CoreInvoke('createNewDocumentWithRedirect2',event,'http:\u002f\u002fsiteurl\u002fDocumentLibrary\u002fForms\u002fSOP\u002fSOP.dotx', ...
From a technical point they're exactly the same. The only difference is the way users think of site collections beneath each of them. So it's common to use "/teams/" for site collections for individual teams and "/sites/" for everything else (in SharePoint Online, On-Premises often create their own)
"/sites/" and "/teams/" is what is called managed paths in ...
I think I found a solution for appWebUrl. ssdar's answer gave me the same problem as I initially had with loading different pages, but another answer in the thread they linked to contained an answer that led me to the right path.
var appWebUrl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
var hostUrl = decodeURIComponent(...
The normal constructor for a SPSite accepts any url and opens the Site Collection which is a best match. If you from that SPSite call OpenWeb() with no parameters you get the SPWeb corresponding to the Site which best match the url specified when created the SPSite. Unfortunately the PowerShell cmdlets don't allow you to do that, but then you just revert to ...
A more global fix can be found by editing Search.ClientControls.js until a permanent fix is found. This will present you with a farm-wide fix, that not only fixes People Search, but other contextual searches as well. I've documented the workaround, but it involves removing references to a new function named encodeURI introduced by April 2014 CU/MS14-022 (...
Try using encodeURIComponent to encode the list title. However, encodeURIComponent does not encode apostrophe. For apostrophes use %27 twice or two apostrophes ''. See this for more detail: http://www.sharepointnadeem.com/2012/06/special-characters-in-rest-query-filter.html
Open in new tab is only supported in Publishing URL field. You are using the basic URL field. You need to use PublishingWebControls:RichLinkField. This will give you the "open in new window" option.
The redirect is by design as noted in the docs: https://docs.microsoft.com/en-us/sharepoint/change-site-address - It will stay this way to make sure that all old links to the site still will work after the address have been changed.
However, you can manually free up these URLs by following the instructions here:
You have to use SPFieldUrlValue. Here is an example:
string FullURL = artistWeb.Site.MakeFullUrl(relURL);
SPFieldUrlValue UrlValue = new SPFieldUrlValue();
UrlValue.Description = "Put desciption here";
UrlValue.Url = FullUrl;
listItem["URL"] = UrlValue;
Everywhere in this answer replace sp2010 with your site url, Table with your list name, PortalHomeDataContext with your site name (without spaces) + DataContext and RestTest.ServiceReference1 with your generated namespace.
This is tested against a SharePoint 2010 site:
http://sp2010/_vti_bin/listdata.svc/Table?$filter=(Color eq 'Red') and (Active eq false)
According to Microsoft:
You cannot use the period character at the end of a site name, a subsite name, or a site group name.
You cannot use the period character at the end of a folder name.
You cannot use the period character at the end of a file name
Are you looking for a way to by-pass this directive?
When you changed the My Site Host URL did you extend and map it to your original my site host or did you just add the binding in IIS and then change AAM? Change the web application and ensure that all of the dependancies are working as well as changing the setting in the User Profile Service Application.
Ensure that the URL you wish to use for the MySite ...
Use this method:
ms-word:nft|u|TEMPLATE URL HERE|s|SAVE LOCATION HERE
^That is the URL
Note: The beginning prefix tells the browser which tool to launch. So if the template is an Excel file, you'll need to change that to 'ms-excel:nft|'. I'm not positive that the Excel method works but it works for Word as shown above.
Also, make sure not to add any ...
Here's one that's useful when you want to put a Web Part page into edit mode but you don't have the option in the UI:
I explain it more fully in this post:
[url]?IsDlg=1 renders the page in dialog mode (no navigation).
[url]?mobile=0 renders the desktop page on a mobile device.
[ListViewURL]?FilterField1=fieldName&FilterValue1=value filters a list view (can be extended to FilterFieldnn).
How to retrieve List Url in SharePoint Online using PowerShell
$SecurePassword = $Password | ConvertTo-SecureString -AsPlainText -Force
return New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName, $SecurePassword)
$context = New-Object Microsoft....
There are a few things that control this in site settings --> navigation.
Managed Navigation -- use a term set for navigation
Add new pages to navigation automatically -- a new item is added to the termset for each new page
Create friendly URLs for new pages automatically -- This is what you're concerned about - the page shows up in the URL without the ....
Since the control has a CssClass Property, you could manipulate the target attribute using JQuery. For example (not tested):
<SharePointWebControls:UrlField ID="UrlField2" FieldName="Link Button" runat="server" CssClass="item-link" />
And on the JQuery side:
For each special character, that character length is multiplied by three. I.E. '@' now turns into 3 characters into the URL. Count the number of special characters for the file that got uploaded with the file that didn't.
Also the paths get stored in different areas:
The limitations In this section apply to the total length of the URL
I would probably host a web service on the SharePoint server that returned the SPWeb.Url
using (SPSite site = new SPSite(fileUrl))
using (SPWeb web = site.OpenWeb())
But if you were going through that much trouble you could build a service to bring back the file info you needed instead of just the site URL.
When working with URLs in SharePoint, there are two very helpful utility classes: SPUtility and SPUrlUtility
There are three different kinds of url used in different properties of various SharePoint objects: absolute, server-relative and site-relative. One need to be careful with them, especially when site collection is not located directly at web ...
You are on the right track, you would need to need to open the site, check to see if the URL is to a sub-web, and then look for the list. Here is one example (from http://techpunch.wordpress.com/2009/06/03/sharepoint-2007-get-splist-object-by-url/):
/// Gets an SPList based on the url to the list
/// <param name="...