Skip to content

Commit

Permalink
toh.js: fix formatting of device page links
Browse files Browse the repository at this point in the history
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  • Loading branch information
jow- committed Dec 6, 2023
1 parent d3a07ee commit f1ba0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/toh.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function formatValue(colName, value) {
return formatLink(`/toh/hwdata/${value.replace(/:/g, '/')}`, 'Edit', true);

case 'devicepage':
return formatLink(`/${value.replace(/:/g, '/')}`, value.replace(/^.+/, ''), true);
return formatLink(`/${value.replace(/:/g, '/')}`, value.replace(/^.+[:\/]/, ''), true);

case 'target':
return formatLink(`/docs/techref/targets/${value}`, value, true);
Expand Down

0 comments on commit f1ba0ca

Please sign in to comment.