Skip to content

Commit

Permalink
fix urlprefix
Browse files Browse the repository at this point in the history
  • Loading branch information
markokoskinen2037 committed May 13, 2020
1 parent 3336796 commit 503706b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/components/OverviewPage/ProgramControlsLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useRef, useState, useEffect } from 'react'
import { Icon, Input } from 'semantic-ui-react'
import { useSelector, useDispatch } from 'react-redux'
import { resetTokenAction, createTokenAction } from 'Utilities/redux/accessTokenReducer'
import { inProduction } from '../../../config/common'
import { basePath } from '../../../config/common'

const translations = {
editPrompt: {
Expand Down Expand Up @@ -61,9 +61,7 @@ const OwnerAccordionLinks = ({ programme }) => {
}
}

const urlPrefix = inProduction
? 'https://study.cs.helsinki.fi/lomake/access/'
: 'http://localhost:8000/access/'
const urlPrefix = `${window.location.origin}${basePath}access/`

return (
<div style={{ margin: '2em 0em' }}>
Expand Down

0 comments on commit 503706b

Please sign in to comment.