• Resolved Nobuhiro

    (@moonplanner)


    If you use subdomain for relative URLs, the “background-image: url” link will not be exported correctly.

    * Setting
    Simply Static ? Settings
    Use relative URLs “/subdomain/”

    * Original Source
    <section style=”background-image:url(‘https://domain/subdomain/uploads/hoge.jpg&#8217;);”>

    * Output Source
    <section style=”background-image:url(‘/uploads/hoge.jpg’);”>

    * Expect Source
    <section style=”background-image:url(‘/subdomain/uploads/hoge.jpg’);”>

    • This topic was modified 6 years, 1 month ago by Nobuhiro.
Viewing 1 replies (of 1 total)
  • Thread Starter Nobuhiro

    (@moonplanner)

    It was solved by adding a tag to “class-ss-url-extractor.php”.

    protected static $match_tags = array(
    	// HTML
    	'section'       => array( 'style', 'background-image', 'url' ),
    

    I hope it will be fixed in the next version.

    • This reply was modified 6 years, 1 month ago by Nobuhiro.
Viewing 1 replies (of 1 total)
  • The topic ‘“background-image:url” incorrect’ is closed to new replies.