Closed ajbeaven closed 8 years ago
Nice one, thanks. Would you have time to document it too?
I've augmented the test suite for IGNORE_LOCALIZATION urls. Also moved the check for the prefix to the first thing done with the url to ensure it always gets stripped, whether or not a langtag is in the url.
Thanks for your changes - sorry I should have added tests for this.
251
Here's the suggested implementation, though I agree it's a bit hacky.
It could perhaps be improved maybe by adding something like a
LanguageTag.AddLocalizationIgnoreUrlPrefix()
, though I didn't include this as I think it'd likely be misused considering there are better alternatives to most use cases.