Forum Discussion
Modern Communication sites - display links issue
- Jan 31, 2018
Hi - I made a custom list to contain links, including a 'category' choice field
And then displayed it on a modern page using the "List (preview)" web part:
The links are clickable in this web part and open the target page as expected
Thanks
Nigel
Well, it's perhaps stating what's obvious, but the webparts clearly don't have the code to understand that a .url file should be processed and then the client redirected, rather than downloaded. The document library code does have this.
I imagine you could develop your own, or add a request to uservoice. but it would seem like quite a niche requirement.
Maybe come up with a solution not using .url files.
Perhaps I wasn't clear and I apologize if so.
Yes, it is looking like the modern web parts are in fact missing code and functionality. That is the reason I think this is a bug or missing feature in the current release. You are right and the native experience directly in a document library will work fine and process the request for the .url object as a redirect. But, when you use the out of the box delivered web parts to display the contents of that library on a page, the experience is broken as the browser attempts to download the url items, rather than processing them as actual web links.
We've opened a case with Microsoft, so we'll see what they say. I'll share what I can when I learn more.
We would love to use a solution that does not force us to use .url files, but that is the delivered functionality from SharePoint. SharePoint is transforming all web links in document libraries to .url items. So, in a standard document library, you click on Add and choose "link", you get a short form where you paste in a URL and give it a title. If you paste in anything (such as https://contoso.sharepoint.com/sites/hr or even http://www.bing.com), it automatically appends .url on the end and transforms it into that kind of object. That might be part of the issue and where code is missing or wrong (or intentionally doing it for an unknown reason). Perhaps a solution would be to add a content type (hopefully delivered by Microsoft soon) that will not do the .url transformation and will allow for native treatment of a standard web link.
So, hopefully that is a bit more clear. I wouldn't think that having a list of links on a page and making sure that they actually act as expected when you click on them isn't an unusual request. We need more than what the Quick Links web part provides because we have a large number of centrally managed links that will be secured (or at least audience targeted). We are trying to provide a premier experience to a wide variety of users. Each user would only see the much smaller subset of links that they need. When that large diverse audience comes to this communications site (a publishing layer of our intranet), we want to guide them quickly to the deeper structures and to other systems as needed. Surely we are not the only customer that has this need.
- Jan 31, 2018
Why not store the links in a custom list, use audiencing, then write a webpart to display them in some pleasing manner.
I'll be interested to see what support say about it.
- MattVarneyJan 31, 2018Iron Contributor
Same issue - because items in lists are just items now. There is no "Links" list app anymore on Modern Communication sites. This used to be very easy and possible. We have it all over the place in classic sites (and on prem). Now, not so much.
In order to accomplish this, it looks like we are going to have to either develop custom content types (to replace the ones that they no longer support) or use a 3rd party to dynamically apply XSLT to transform the link item back into a workable link.
This is either a bug or a an intended deviation from the past, so I'm hoping the ticket with Microsoft will illuminate that.
- Nigel WitherdinJan 31, 2018Iron Contributor
Hi - I made a custom list to contain links, including a 'category' choice field
And then displayed it on a modern page using the "List (preview)" web part:
The links are clickable in this web part and open the target page as expected
Thanks
Nigel