In url-options-manager.ts:36, window.location.href.substr() is used, which is deprecated in ECMAScript. When the URL has no query string, lastIndexOf('?') returns -1, making substr(-1) extract just the trailing character. Should be replaced with substring() or slice(), with a guard for missing ?.