Skip to content

Commit 93137d1

Browse files
committed
Ensure no layout in rendering template
1 parent e80285d commit 93137d1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Our.Umbraco.FullTextSearch/Our.Umbraco.FullTextSearch.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
<PackageProjectUrl>https://github.com/skttl/umbraco-fulltextsearch8</PackageProjectUrl>
1414
<RepositoryUrl>https://github.com/skttl/umbraco-fulltextsearch8</RepositoryUrl>
1515
<PackageTags>umbraco, umbraco-cms</PackageTags>
16-
<Version>1.2.0</Version>
16+
<Version>1.2.1-beta2</Version>
17+
<AssemblyVersion>1.2.1.2</AssemblyVersion>
18+
<FileVersion>1.2.1.2</FileVersion>
1719

1820
</PropertyGroup>
1921

src/Our.Umbraco.FullTextSearch/Services/CacheService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public void AddToCache(int id)
111111

112112
private string RenderingTemplateContent =>
113113
"@inherits Umbraco.Web.Mvc.UmbracoViewPage"
114+
+ Environment.NewLine + "@{ Layout = null; }"
114115
+ Environment.NewLine + "@Umbraco.RenderTemplate(Model.Id)"
115116
+ Environment.NewLine + "@*"
116117
+ Environment.NewLine + "This template has been created for the sole purpose of stopping rendering errors"
@@ -126,7 +127,7 @@ public void AddToCache(int id)
126127
+ Environment.NewLine + "next time something needs to be cached for indexing with Full Text Search."
127128
+ Environment.NewLine + ""
128129
+ Environment.NewLine + "Thank you for your understanding. And remember; if you like FullTextSearch,"
129-
+ Environment.NewLine + "you can always buy me a virtual coffee at https://ko-fi.com/skttl"
130+
+ Environment.NewLine + "you can always buy me a virtual coffee at https://github.com/sponsors/skttl"
130131
+ Environment.NewLine + "*@";
131132

132133
private bool IsDisallowed(IPublishedContent node)

0 commit comments

Comments
 (0)