Fixed problem with kicad footprint autcomplete when using a reverse proxy in a prefixed path

This fixes issue #587
This commit is contained in:
Jan Böhmer 2024-04-28 23:27:15 +02:00
parent 75df0198fc
commit 1bf9f25ded

View file

@ -36,8 +36,9 @@ class KicadFieldAutocompleteType extends AbstractType
public const TYPE_FOOTPRINT = 'footprint';
public const TYPE_SYMBOL = 'symbol';
public const FOOTPRINT_PATH = '/kicad/footprints.txt';
public const SYMBOL_PATH = '/kicad/symbols.txt';
//Do not use a leading slash here! otherwise it will not work under prefixed reverse proxies
public const FOOTPRINT_PATH = 'kicad/footprints.txt';
public const SYMBOL_PATH = 'kicad/symbols.txt';
public function configureOptions(OptionsResolver $resolver): void
{