Theme can't compile URLs in text config fields

I’ve set up my custom Theme and want to make hrefs customizable through administration.

I added a custom field of type text in my theme.json, but as soon as I enter a URL in that field, the theme can’t compile anymore.

This is the appearing error: 

 Unable to compile the theme "CustomTheme". parse error: failed at `$configFieldHeaderLink:;`

The special characters in the URL seem to be a problem. If I enter anything without „/“ and „.“ it works perfectly fine, but obviously I need those characters because I want to customize a URL.

Did anyone else encounter problems like this one? Any ideas on how to solve this issue?

Thanks in advance!

1 Like

Hi, I’ve had the same problem but I found solution for this.

You need only add:

 "scss": false,

to your field config.