Skip to content

Commit

Permalink
fix: use root path instead of relative path for img src (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
urangel authored Oct 9, 2023
1 parent dbafbbe commit 5bf8bde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/ui/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const Header: React.FC = () => {
<Box height='100%' paddingY='6px' boxSizing='border-box'>
<Link component={RouterLink} to={routes.ROUTE_HOME} data-testid='global_header_nav-home'>
<img
src={'img/logo-transparent-banner.svg'}
src={'/img/logo-transparent-banner.svg'}
alt='BloodHound CE Home'
style={{
height: '100%',
Expand Down
2 changes: 1 addition & 1 deletion cmd/ui/src/components/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const LoginPage: React.FC<LoginPageProps> = ({ children }) => {
<Paper sx={{ px: 8, pb: 8, pt: 4 }}>
<Box height='100%' width='auto' textAlign='center' boxSizing='content-box' padding='64px'>
<img
src={'img/logo-transparent-full.svg'}
src={'/img/logo-transparent-full.svg'}
alt='BloodHound'
style={{
width: '100%',
Expand Down
2 changes: 1 addition & 1 deletion cmd/ui/src/views/Explore/ExploreSearch/CypherInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const CypherInput = () => {
/*What is graphed will never die*/ toggle && (
<div style={{ display: 'block', position: 'relative', bottom: 0, left: 0 }}>
<img
src={'img/logo-animated.gif'}
src={'/img/logo-animated.gif'}
alt='What is graphed will never die'
style={{ width: '200px' }}
/>
Expand Down

0 comments on commit 5bf8bde

Please sign in to comment.