fix: added BASE_URL support
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
SolutionStatus,
|
||||
UserId,
|
||||
} from '../../shared/model'
|
||||
import { server } from '../api'
|
||||
import { prependBaseUrl, server } from '../api'
|
||||
import { Markdown } from './Markdown'
|
||||
import { Select } from './Select'
|
||||
|
||||
@@ -89,13 +89,14 @@ export const Solution = ({
|
||||
{sentBy && (
|
||||
<>
|
||||
{' '}
|
||||
di <a href={`/user/${sentBy}`}>@{sentBy}</a>
|
||||
di <a href={prependBaseUrl(`/user/${sentBy}`)}>@{sentBy}</a>
|
||||
</>
|
||||
)}
|
||||
{forProblem && (
|
||||
<>
|
||||
{' '}
|
||||
per il <a href={`/problem/${forProblem}`}>Problema {forProblem}</a>
|
||||
per il{' '}
|
||||
<a href={prependBaseUrl(`/problem/${forProblem}`)}>Problema {forProblem}</a>
|
||||
</>
|
||||
)}
|
||||
{!isNaN(d as any) && (
|
||||
|
||||
Reference in New Issue
Block a user