Skip to content

Commit

Permalink
fix(Remixer): resolve URL for text loaded from 'go' link
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaturner committed Feb 14, 2024
1 parent 756b687 commit 029fd58
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
23 changes: 14 additions & 9 deletions public/Henry Agnew/Remixer/bundle.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions public/Henry Agnew/Remixer/src/components/ReRemixerPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ class ReRemixerPanel extends React.Component {
}
}

// overwrite url to resolved path rather than @go link
if (urlParams.get('remixURL') && cleanedPath) {
lastText.url = `https://${lastText.subdomain}.libretexts.org/${cleanedPath}`;
}

lastText.title = `<b>Last Linked: </b>${lastText.title}<a href="${lastText.url}" target="_blank"><span class="mt-icon-link" style="font-size: 90%; margin-left: 5px"></a>`;
lastText.children = await RemixerFunctions.getSubpages(lastText.path, this.state.subdomain, {
Expand Down

0 comments on commit 029fd58

Please sign in to comment.