I think it could be related to
this issue
Background:
My site collection's home page apps/KC defaults to showing my report library with the All Content View. This is a flat view with items grouped by a term set based column. Similar to the above issue I think I have the Title column altered in a JS linked file
to link to the document. If I switch to the Folder View and drill into a folder, I can see that the URL changes to the All Content view.
Here is my script:
(function () {
//This function will create a URL from the CurrentItem.FilRef# and set the text to currentItem.Title# and put it in the column
// designated in the template property Fields = {'columnName';{ ....
//According to the source doc, coulmn name should be a seperate column from the Sharepoint default Title, but I did not have any trouble using title .
// Initialize the variables for overrides objects
var overrideCtx = {};
overrideCtx.Templates = {};
//List of default Object.keys(ctx.CurrentItem)
//ID,PermMask,FSObjType,HTML_x0020_File_x0020_Type,ContentType,File_x0020_Type,
//File_x0020_Type.mapapp,HTML_x0020_File_x0020_Type.File_x0020_Type.mapcon,
//HTML_x0020_File_x0020_Type.File_x0020_Type.mapico,serverurl.progid,
//ServerRedirectedEmbedUrl,File_x0020_Type.progid,File_x0020_Type.url,
//FileRef,FileLeafRef,CheckoutUser,CheckedOutUserId,IsCheckedoutToLocal,Title,
//Created,Created.FriendlyDisplay,firstRow
// This is the text for the Web Part JS Link property ~sitecollection/_catalogs/masterpage/LinkTitleToDocument.js
overrideCtx.Templates.Fields = {'Title': { 'View' : '<a href="<#=ctx.CurrentItem.FileRef#>"><#=ctx.CurrentItem.Title#></a>' }
};
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx); })();
The Target Control type = View
Standalone = Override
Target Scope = /apps/KC
Template ID = 100
Any ideas?