Word hyperlink to SharePoint 2019 documentset not working - sharepoint

I have an issue concerning hyperlinks to documentsets in SharePoint 2019.
We are currently migrating all sites from SharePoint 2013 to SharePoint 2019.
We have a document library with word documents within documentsets. These word documents contain hyperlinks to their own location to make the word document the point of entry for the customer.
They are formatted like this:
They refer to '.' (document location) which means below is the final url.
However links to documentsets ending with a trailing '/' within SharePoint 2019 are not supported any longer. The url above will work perfectly fine in SP2013 but not in SP2019, it will result in an error until I remove the trailing slash.
I am currently trying to re-format the url within Word to try and get it to work with SP2019. But I see no way to remove the trailing slash from within Word. I do know that the url will also work if I add a period '.' at the end of the url, but I can't get the period to escape so the url will end in "Test1234/.".
Summary
How do I create a relative hyperlink from within Word that either removes a trailing slash or adds a period at the end?

Based on your description, I understand that you want to add hyperlink direct to the locations of the file itself in the word document. And you want to the end of the file URL excludes trailing slash.
You could go to document library -> Select the file -> Copy to -> Get the URL without trailing slash in the end.

Related

Extract part of text from a URL in Excel

I am working on extracting a part of the URL to another column. Here are 2 URLs -
http://learn.reg.edu/degree-programs/religion-theology/?bm_source=facebook&bm_medium=ppc&bm_campaign_id=6086055048219&bm_adset_id=6086055734819&bm_ad_id=6094109509819&bm_placement=Facebook_Mobile_Feed
http://learn.regent.edu/home-2/?persist=1&bm_placement=an&bm_ad_id=%7B%7Bad.id%7D%7D&bm_adset_id=%7B%7Badset.id%7D%7D&bm_campaign_id=%7B%7Bcampaign.id%7D%7D&bm_campaign=rm&bm_medium=ppc&bm_source=facebook
So I wish to pull out text after "bm_placement=" and whatever it says (like in the above two urls, url 1 has "Facebook_Mobile_Feed" and url 2 has "an")
I am using this formula -
=RIGHT(ES16760,LEN(ES16760)-(FIND("bm_placement=",ES16760,1) +12))
It works fine for the first URL but for the second one, it pulls out everything after "an" which I do not want. Any suggestions on how to solve this?
Thanks!
Use MID with a lot of FINDs:
=MID(A1,FIND("bm_placement=",A1)+ LEN("bm_placement="),FIND("&",A1&"&",FIND("bm_placement=",A1))-(FIND("bm_placement=",A1)+ LEN("bm_placement=")))

Building a formula that builds a URL with variables from cells (which will be keywords)

Google Sheets... Basically... I want to build a URL (it'll be a boolean site: search) where one cell field will be the website that is searched and another cell will be the keywords to search for. If there are more than one keywords in the field it'll need to replace the spaces with + signs in the URL.
Example is I have 'opentoexport.com' in a cell for the website and 'this is a test' in the field for the search term/keywords. It needs to build a URL that replace the spaces in the search term with + signs like this - google.co.uk/?gws_rd=ssl#q=site:opentoexport.com+this+is+a+test.
To try to make it clearer what I mean, I want some kind of formula that would make a URL like google.co.uk/?gws_rd=ssl#q=site:(Cell C:4)+(Cell A:4) where C:4 was the website I wanted to do a site: search of and C:4 would be keywords. The keywords in C:4 have spaces between them and the URL needs those spaces to be a + sign instead.
The formula I've tried so far is =CONCAT("google.co.uk/?gws_rd=ssl#q=site:($C4)+($A4))") which doesn't work.
The info in C4 is 'opentoexport.com' which is the website I want to do the site search of on Google.
The info in A4 are the keywords which is the search term I want to use on Google for the site: search, which in this instance is 'articles export market'. I want it to create https://www.google.co.uk/?gws_rd=ssl#q=site:opentoexport.com+this+is+a+test.
Here is an example of the sheet I'm using... https://goo.gl/RHEXce
Could anyone help? It seems complicated but I'm hoping someone who knows what they're doing might be able to make it simple?
note i've had to mess with the URLs to allow myself to post because it warned I had too many links
Does this formula work as you want:
="https://www.google.co.uk/?gws_rd=ssl#q=site:"&C4&"+"&SUBSTITUTE(A4," ","+")

Automatically attaching specified suffixes to text in Excel

I am trying to come up with a way to attach a specified suffix to a string of text in Excel, but only when it matches another string.
Example:
I have a list that contains several domains:
xyz.blogspot.com,
abc.blogspot.co.uk,
edf.blogspot.co.jp
For each of these, I want to strip off the suffix (.com, .co.uk etc) and apply a new suffix from a list I have (.com, .co.uk, .co.jp, .in, .br etc).
The idea is that when I see xyz.blogspot.com, I can instantly and automatically create all possible variations of that domain name.
Any help appreciated, thanks.
I have a feeling this will not suit (but seems to answer the question):
=LEFT($A2,LEN($A$1)+FIND($A$1,A2)-1)&B$1
copied across and down to suit.

Lookup column to open a URL instead of related item in SharePoint 2010?

I have a list with two columns; both are single line of text. The first acts as a URL title and the second one contains the actual URL. Again, both columns are of type single line of text.
Next, I have another list with some columns, including one lookup. That lookup is targeting the second column in the first list, i.e. the single line of text that contais the actual URL. Now, when I click on that lookup field for some list item, a display form is opened showing that related item from the first list. This is a default SharePoint behavior.
I want to be able to open the actual URL instead of opening the lookup item. Is that possible? I prefer the solutions in SharePoint Designer more than coding, but I'll take anything at this point :) Thank you.
You can add a calculated column to generate HTML with the link, have a look at these articles:
http://blog.pathtosharepoint.com/2008/09/01/using-calculated-columns-to-write-html/
http://blog.pathtosharepoint.com/2008/09/01/apply-color-coding-to-your-sharepoint-lists/

Adding a different 'url' colum in Sharepoint Search results

I have a customised Sharepoint results xsl, and I've added new columns before (via Metadata mappings etc), this one has me stumped.
We have a document type, that can either be a 'Document' or a 'Link to a document'.
When I search I want to check the URL INSIDE the 'Link to a document' (what it points to), but I only get the actual URL for the 'Link to a document'.
What property do I need to be indexing to display this?
It seems like you are asking for a feature that dynamically indexes the contents of the 'Link to a document' URL. If true, unfortunately this can't be done with out-of-the-box SharePoint. The product only indexes a set list of URLs / content sources as specified in Search Admin.
As a custom solution, you could write your own indexer using a timer job that regularly extracts the contents of each 'Link to a document' URL column and stuffs it into a field in your document content type. Perhaps there is even a way to run SharePoint's indexer over it and use the results of that.

Resources