Skip to content

Commit 289fd9a

Browse files
authored
Merge pull request #163 from Geta/feature/custom-notfound-handler-readme-fix
Fixed custom notfound handler documentation
2 parents 6e463a2 + dd99d45 commit 289fd9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Here is an example using Optimizely Find to look up a product by code:
244244
```csharp
245245
public class CustomProductRedirectHandler : INotFoundHandler
246246
{
247-
public string RewriteUrl(string url)
247+
public RewriteResult RewriteUrl(string url)
248248
{
249249
if(url.Contains("productid"))
250250
{
@@ -264,7 +264,7 @@ public class CustomProductRedirectHandler : INotFoundHandler
264264
}
265265
}
266266
}
267-
return null;
267+
return RewriteResult.Empty;
268268
}
269269
}
270270
```

0 commit comments

Comments
 (0)