jellyfin/Emby.Server.Implementations
Joshua Boniface 2a79ae0a6e Normalize baseUrl behaviour
Fully normalizes the baseUrl behaviour to better match how this sort of
feature works in other programs.

1. The baseUrl is always appended to paths, even the built-in `/emby`
and `/mediabrowser` paths.
2. The baseUrl is set statically at class instance creation, to ensure
it persists through changes until the next restart.
3. Configuration is normalized using a function when set, to ensure it's
in a standard `/mypath` format with leading `/`.
4. Cleans up the conditionals around default redirects. For sanity after
changing the URL, it will match *any* path that doesn't match the
current baseUrl and redirect it back to the main page (with baseUrl).
5. Adds a second method, NormalizeUrlPath, to avoid lots of `+ "/" +`
string manipulations which are unclean - we should always have a leading
slash.
6. Sets the default baseUrl to an empty string to avoid unexpected
behaviour, though this would be worked-around automatically.
7. Adds some debug logs whenever a URL is normalized, to help track down
issues with this code (if any arise).
2019-10-08 18:06:03 -04:00
..
Activity Fix warnings, improve performance (#1665) 2019-09-02 02:19:29 -04:00
AppBase Fix doc releated warnings 2019-08-09 23:50:40 +02:00
Archiving
Branding
Browser
Channels Use CultureInvariant string conversion for Guids 2019-08-09 23:17:54 +02:00
Collections Use CultureInvariant string conversion for Guids 2019-08-09 23:17:54 +02:00
Configuration move the transcode path 2019-08-29 00:14:50 -07:00
Cryptography Remove legacy auth code (#1677) 2019-09-17 12:07:15 -04:00
Data Nicer link format for comment 2019-09-29 16:18:05 -04:00
Devices Use CultureInvariant string conversion for Guids 2019-08-09 23:17:54 +02:00
Diagnostics
Dto add comment explaining a bug fix 2019-10-06 01:24:04 +09:00
EntryPoints Improvements to UserManager 2019-08-16 21:06:11 +02:00
HttpClientManager Possible fix for MrMC 2019-09-08 21:07:29 +02:00
HttpServer Normalize baseUrl behaviour 2019-10-08 18:06:03 -04:00
Images Use CultureInvariant string conversion for Guids 2019-08-09 23:17:54 +02:00
IO Add analysers to Emby.IsoMounting and enable TreatWarningsAsErrors 2019-08-16 21:03:45 +02:00
Library Fix multiple mistakes and warnings 2019-09-23 20:32:44 +02:00
LiveTv Fix multiple mistakes and warnings 2019-09-23 20:32:44 +02:00
Localization Translated using Weblate (Finnish) 2019-10-06 09:14:04 -04:00
MediaEncoder Fix more warnings 2019-09-01 18:39:23 +02:00
Middleware
Net Attempt to fix #1391 2019-08-28 13:55:36 +02:00
Networking Fix more warnings 2019-08-09 23:16:24 +02:00
Playlists Use CultureInvariant string conversion for Guids 2019-08-09 23:17:54 +02:00
Properties
ScheduledTasks move the transcode path 2019-08-29 00:14:50 -07:00
Security Return DB asap 2019-08-18 22:05:06 +02:00
Serialization Use CultureInvariant string conversion for Guids 2019-08-09 23:17:54 +02:00
Services Fix multiple mistakes and warnings 2019-09-23 20:32:44 +02:00
Session Improvements to UserManager 2019-08-16 21:06:11 +02:00
SocketSharp Add analysers to Emby.IsoMounting and enable TreatWarningsAsErrors 2019-08-16 21:03:45 +02:00
Sorting More warning fixes 2019-08-29 22:28:33 +02:00
TV Use CultureInvariant string conversion for Guids 2019-08-09 23:17:54 +02:00
Udp Remove IpAddressInfo and IpEndPointInfo classes 2019-07-25 00:15:06 +02:00
Updates Fix plugin installation 2019-09-28 21:06:58 +02:00
UserViews
WebSockets
ApplicationHost.cs Update ApplicationHost.cs 2019-10-04 18:53:26 +02:00
ConfigurationOptions.cs Fix doc releated warnings 2019-08-09 23:50:40 +02:00
Emby.Server.Implementations.csproj Update deps (#1735) 2019-09-11 13:31:35 -04:00
IStartupOptions.cs
ResourceFileManager.cs Simplify file serving code 2019-06-10 00:53:16 +02:00
ServerApplicationPaths.cs Fix doc releated warnings 2019-08-09 23:50:40 +02:00