Skip to content

Commit

Permalink
Merge 78bb3ea into 7df7b4c
Browse files Browse the repository at this point in the history
  • Loading branch information
hadijahkyampeire committed Aug 24, 2021
2 parents 7df7b4c + 78bb3ea commit 795b426
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/apps/concepts/pages/ViewConceptPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ const ViewConceptPage: React.FC<Props> = ({
retrieveConcept(url);
}, [url, retrieveConcept]);

const fromDictionary = linkedDictionary || dictionaryToAddTo;
const conceptsDictionary = linkedDictionary ? `${linkedDictionary}concepts/` : `${dictionaryToAddTo}concepts/`;
const backUrl = fromDictionary ? conceptsDictionary : `${conceptSource}concepts/`;

return (
<>
<Header
Expand All @@ -63,7 +67,7 @@ const ViewConceptPage: React.FC<Props> = ({
? concept.display_name
: "View concept"
}
backUrl={linkedDictionary ? `${linkedDictionary}concepts/` : `${dictionaryToAddTo}concepts/` }
backUrl={backUrl}
>
<ProgressOverlay
delayRender
Expand Down

0 comments on commit 795b426

Please sign in to comment.