New in version 4.6.3 (01-14-2019)
- During 2018 SharePoint.Online started to support some special characters in folder(s)/file(s) name. ReplaceMagic can all process those documents
- Improved result display in dashboards (removed "bad" files from "processed" documents counter)
- Extended that all document types are shown in Console view (Text/Custom files were missing)
- Extended Dashboards to show text/custom extension files
- Included check that export results does not work if result tables are empty
- Fixed bug - due to missing exception handling, if maximum memory limit was reached, ReplaceMagic was not executing memory cleanup routine.
Now something different - as we use BlogEngine.io for our blog system we experienced issue that this Blog software does not add canonical tags which are needed for SEO.
Now, extension is not that complicated (btw. we use 3.3.6 version).
Search for file account.master and add there in <head> section:
<link href="https://YOUR_URL/account/login.aspx" rel="canonical" />
As a second step go to BlogEngine.Core project and search for file BlogBasePage.cs (should be in \Web\Controls folder) and add following code (I put it after protected virtual void AddMetaContentType()):
/// <summary>
/// Adds the canonical tag to the header.
/// </summary>
protected virtual void AddCanonical()
{
string rawUrl = String.Concat(this.GetApplicationUrl(), Request.RawUrl);
//if (rawUrl.Contains("/post/"))
//{
//bool hasQueryStrings = Request.QueryString.Keys.Count > 1;
//if (hasQueryStrings)
//{
Uri uri = new Uri(rawUrl);
rawUrl = uri.GetLeftPart(UriPartial.Path);
HtmlLink canonical = new HtmlLink();
canonical.Href = rawUrl;
canonical.Attributes["rel"] = "canonical";
Page.Header.Controls.Add(canonical);
//}
//}
}
private string GetApplicationUrl()
{
string basePath;
string port = HttpContext.Current.Request.ServerVariables["SERVER_PORT"];
string protocol = HttpContext.Current.Request.ServerVariables["SERVER_PORT_SECURE"];
string serverName = HttpContext.Current.Request.ServerVariables["SERVER_NAME"];
if (port == null || port == "80")
{
port = String.Empty;
}
else
{
port = String.Concat(":", port);
}
if (protocol == null || protocol == "0")
{
protocol = "http://";
}
else
{
protocol = "https://";
}
basePath = String.Concat(protocol, serverName, port);
return basePath;
}
In case that you want to add canonical tag only to post pages uncomment
if (rawUrl.Contains("/post/"))
and in case that you have QueryStrings you'll need to uncomment
bool hasQueryStrings = Request.QueryString.Keys.Count > 1;
and
if (hasQueryStrings)
Finally, when everything is in place go to: protected override void OnLoad(EventArgs e) in BlogBasePage.cs and add call to AddCanonical() which I did just after AddMetaContentType().
Hope that this helps.
What is new in version 4.5.8:
- Improved system messages
- Fixed issue that ReplaceMagic is not making replacements if parameter "Skip files bigger than" is set to 0
New in version 4.5.7 (10-03-2018)
- Extended log file to include processed file size also
- Changed that ReplaceMagic is started in normal size and not maximized like before
- Included in Configuration information how many logical processors your computer has
- Maximum number of parallel documents set to 100 (which is anyway too big for 99% of current computers)
- During scan of documents ReplaceMagic is going through selected locations (you will see Read Folders in progress bar). Now you can set over Configuration after how many scanned documents you would like to see update in the progress bar. Recommendation is 1000 or in case of bigger location (according to number of documents stored there) at least 5000 or maybe every 10000
- Extended ReplaceMagic to remember previously selected document extensions for processing. This means when you close ReplaceMagic next time when you start it, it will have pre-selected all extensions used last time
- Instead of showing only if HTTP(s) links are broken or not, ReplaceMagic will now show also returned status code and descriptive name. More infos about status codes: https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?redirectedfrom=MSDN&view=netframework-4.7.2
- Additional error description will be shown during SharePoint connection (only if option Suppress Warnings is not set). If Suppress Warnings is set message box will not appear, you will only see "No connection, please check logon data!" message
- Enabled TLS 1.2 as after 10/31/2018 SharePoint.Online will support only TLS 1.2 (more info: https://support.microsoft.com/en-us/help/4057306/preparing-for-tls-1-2-in-office-365)