Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Embeded SVG icons cause rendering issues on reponse other than 200 #26

@WengerK

Description

@WengerK

Motivation/Probleme

When no SVG icons are generated, the page embed the 404 page into the current page.

For now, we have to add the following code to works with SVGIcon

<!-- Toolbox svg icons -->
<script type="text/javascript">
window.svgPath = "/{{ directory }}/build/icons/icons.svg";
</script> 

The problem is that the code will fetch the given path & it will append the results to the page, even with a non 2xx response is given .... Then it will append a 404 embed into the current page !

Resolutions

Check the response code before append it into the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions