MISP/MISP

HTTP 404 when loading logo image on specific deployements

Open

#1,938 opened on Feb 15, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)PHP (4,600 stars) (1,306 forks)batch import
S: diagnosedS: staleT: potential buggood first issuevisual

Description

Very low impact bug, the logo is not loaded by the browser (404 error). The bug can occur when running the application behind a reverse proxy or under a different URL path like this https://misp.local/misp1.

The default logo path is hardcoded in the file MISP/app/View/Users/login.ctp at the line 22: <img src="/img/misp-logo.png"

It should be loaded dynamically like the custom logos <img src="<?php echo $baseurl?>/img/misp-logo.png"

Contributor guide