mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4713] [MERGED] Redirect robots.txt if hosting web content #10239
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4713
Author: @crobibero
Created: 12/7/2020
Status: ✅ Merged
Merged: 12/13/2020
Merged by: @cvium
Base:
master← Head:robots📝 Commits (3)
d65e8d7Redirect robots.txt if hosting web contentb66abf0Add support back for /emby and /mediabrowser routes69d5810Use a more descriptive middleware name📊 Changes
4 files changed (+128 additions, -0 deletions)
View changed files
📝
Jellyfin.Server/Extensions/ApiApplicationBuilderExtensions.cs(+23 -0)➕
Jellyfin.Server/Middleware/LegacyEmbyRouteRewriteMiddleware.cs(+54 -0)➕
Jellyfin.Server/Middleware/RobotsRedirectionMiddleware.cs(+47 -0)📝
Jellyfin.Server/Startup.cs(+4 -0)📄 Description
Fixes https://github.com/jellyfin/jellyfin/issues/4689
Redirects
{baseUrl}/robots.txtto{baseUrl}/web/robots.txt🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.