Fix really fix redirect
This commit is contained in:
parent
35b103c056
commit
c2feaae89c
@ -40,6 +40,7 @@ public class RecordingController : ControllerBase
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>The recording manager HTML page.</returns>
|
/// <returns>The recording manager HTML page.</returns>
|
||||||
[HttpGet("Page")]
|
[HttpGet("Page")]
|
||||||
|
[AllowAnonymous]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
public IActionResult GetRecordingPage()
|
public IActionResult GetRecordingPage()
|
||||||
|
|||||||
@ -45,16 +45,13 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|||||||
{
|
{
|
||||||
Name = Name,
|
Name = Name,
|
||||||
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Configuration.configPage.html", GetType().Namespace)
|
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Configuration.configPage.html", GetType().Namespace)
|
||||||
},
|
|
||||||
new PluginPageInfo
|
|
||||||
{
|
|
||||||
Name = "SRF Play Recordings",
|
|
||||||
DisplayName = "SRF Sport Recordings",
|
|
||||||
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.Configuration.recordingPage.html", GetType().Namespace),
|
|
||||||
EnableInMainMenu = true,
|
|
||||||
MenuSection = "Live TV",
|
|
||||||
MenuIcon = "fiber_smart_record"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note: the recordings manager is intentionally NOT registered as a plugin
|
||||||
|
// page. Plugin pages live under the admin Dashboard and are admin-gated, which
|
||||||
|
// both caused a redirect to the recordings page and made it inaccessible to
|
||||||
|
// normal users. Recordings are served as a standalone, user-accessible page at
|
||||||
|
// GET /Plugins/SRFPlay/Recording/Page (see RecordingController).
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user