Skip to content

Commit

Permalink
Replaced hardcoded "pol.is" reference with dynamic URL prefix (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatOneBeagle committed Mar 6, 2021
1 parent 296236c commit a58692c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import PolisNet from '../../../util/net'
import React from 'react'
import PropTypes from 'prop-types'
import Url from '../../../util/url'
import { connect } from 'react-redux'
import { Heading, Box, Button } from 'theme-ui'
import ComponentHelpers from '../../../util/component-helpers'
Expand Down Expand Up @@ -78,8 +79,8 @@ class ReportsList extends React.Component {
<a
target="_blank"
rel="noreferrer"
href={'/report/' + report.report_id}>
pol.is/report/{report.report_id}
href={Url.urlPrefix + 'report/' + report.report_id}>
{Url.urlPrefix}report/{report.report_id}
</a>
</Box>
)
Expand Down

0 comments on commit a58692c

Please sign in to comment.