diff options
author | bob <bcz@cs.brown.edu> | 2019-05-15 15:05:57 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-05-15 15:05:57 -0400 |
commit | d79d721baa25947dfbbd17eda173835d9ae93fa6 (patch) | |
tree | 376b3d887db13bdd5b98ba5dc0023d03a0fc2c23 /src/client/views/nodes/FormattedTextBox.tsx | |
parent | dae85deb62168cbfae4557aa8632896592d71cf9 (diff) |
several smaller fixes.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index cb09ad42c..8e04071c7 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -229,7 +229,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe if (e.target && (e.target as any).href) { let href = (e.target as any).href; if (href.indexOf(DocServer.prepend("/doc/")) === 0) { - let docid = href.replace(DocServer.prepend("/doc/"), "").split("%")[0]; + let docid = href.replace(DocServer.prepend("/doc/"), "").split("?")[0]; DocServer.GetRefField(docid).then(action((f: Opt<Field>) => { if (f instanceof Doc) { if (DocumentManager.Instance.getDocumentView(f)) |