mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
FInalized Menu. Added first static Page...
This commit is contained in:
33
HaWeb/Controllers/LegacyConroller.cs
Normal file
33
HaWeb/Controllers/LegacyConroller.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
// Handles 304 redirects to links of the old page, so permalinks stay active.\
|
||||
using System.Diagnostics;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using HaWeb.Models;
|
||||
|
||||
namespace HaWeb.Controllers;
|
||||
|
||||
|
||||
public class LegacyContoller : Controller
|
||||
{
|
||||
[Route("Supplementa/")]
|
||||
[Route("Supplementa/Register")]
|
||||
[Route("Supplementa/Register/{id?}")]
|
||||
public IActionResult SupplementaRegister(string? id) {
|
||||
if (id != null)
|
||||
return RedirectPermanent("/Register/Register/" + id);
|
||||
return RedirectPermanent("/Register/Register");
|
||||
}
|
||||
|
||||
[Route("Supplementa/Bibelstellen")]
|
||||
public IActionResult SupplementaBibelstellen(string? id) {
|
||||
if (id != null)
|
||||
return RedirectPermanent("/Register/Bibelstellen/" + id);
|
||||
return RedirectPermanent("/Register/Bibelstellen");
|
||||
}
|
||||
|
||||
[Route("Supplementa/Forschung")]
|
||||
public IActionResult SupplementaForschung(string? id) {
|
||||
if (id != null)
|
||||
return RedirectPermanent("/Register/Forschung/" + id);
|
||||
return RedirectPermanent("/Register/Forschung");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user