Skip to content

Commit e77c7d5

Browse files
committed
Removed virtual from the RedirectController.Redirect() action
This implementation is so straight forward that it's likely anyone with specialized needs would just create their own controller. This is really just a convenience controller for a standard requirement; customers with more sophisticated needs have added their own redirect controllers either to replace or to complement the out-of-the-box `RedirectController`. If we discover a specific extensibility point that we want to customize in the future, we can reevaluate the best approach for that then.
1 parent 37b38f5 commit e77c7d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.AspNetCore.Mvc/Controllers/RedirectController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public RedirectController(ITopicRepository topicRepository) : base() {
4949
/// Redirect based on <see cref="Topic.Id"/>.
5050
/// </summary>
5151
/// <param name="topicId">The <see cref="Topic.Id"/> to lookup in the <see cref="ITopicRepository"/>.</param>
52-
public virtual ActionResult Redirect(int topicId) {
52+
public ActionResult Redirect(int topicId) {
5353

5454
/*------------------------------------------------------------------------------------------------------------------------
5555
| Find the topic with the correct PageID.

0 commit comments

Comments
 (0)