jellyfin/MediaBrowser.Model/Configuration
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
..
AccessSchedule.cs Reformat JustAMan review pt2 changes 2019-01-17 20:24:39 +01:00
BaseApplicationConfiguration.cs Remove more self-update code 2019-02-18 16:57:08 +01:00
DynamicDayOfWeek.cs Reformat JustAMan review pt2 changes 2019-01-17 20:24:39 +01:00
EncodingOptions.cs Fix #1432. Add support for encoding with libx265 and hevc_nvenc. 2019-06-01 15:46:41 -07:00
ImageOption.cs EditorConfig reformat: MediaBrowser.Model 2019-01-13 20:31:15 +01:00
ImageSavingConvention.cs Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.Model 2019-01-13 21:02:23 +01:00
LibraryOptions.cs Reformat JustAMan review pt2 changes 2019-01-17 20:24:39 +01:00
MetadataConfiguration.cs Reformat JustAMan review pt2 changes 2019-01-17 20:24:39 +01:00
MetadataOptions.cs Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.Model 2019-01-13 21:02:23 +01:00
MetadataPlugin.cs Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.Model 2019-01-13 21:02:23 +01:00
MetadataPluginSummary.cs Post GPL cleanup 2019-01-03 23:19:02 +01:00
MetadataPluginType.cs EditorConfig reformat: MediaBrowser.Model 2019-01-13 20:31:15 +01:00
ServerConfiguration.cs Normalize baseUrl behaviour 2019-10-08 18:06:03 -04:00
SubtitlePlaybackMode.cs Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.Model 2019-01-13 21:02:23 +01:00
UnratedItem.cs Remove support for games as a media type 2019-01-31 19:04:47 +01:00
UserConfiguration.cs Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.Model 2019-01-13 21:02:23 +01:00
XbmcMetadataOptions.cs Reformat JustAMan review pt2 changes 2019-01-17 20:24:39 +01:00