Skip to content

Commit

Permalink
fix(topics): fix bad find and replace
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed Dec 2, 2024
1 parent 7b5362b commit 49aa8c7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions static/js/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Header extends Component {
{ Sefaria._siteSettings.TORAH_SPECIFIC ?
<a className="home" href="/" >{logo}</a> : null }
<a href="/texts" className="textLink"><InterfaceText context="Header">Texts</InterfaceText></a>
<a href="/django_topics" className="textLink"><InterfaceText>Topics</InterfaceText></a>
<a href="/topics" className="textLink"><InterfaceText>Topics</InterfaceText></a>
<a href="/community" className="textLink"><InterfaceText>Community</InterfaceText></a>
<DonateLink classes={"textLink donate"} source={"Header"}><InterfaceText>Donate</InterfaceText></DonateLink>
</div>
Expand Down Expand Up @@ -211,7 +211,7 @@ const MobileNavMenu = ({onRefClick, showSearch, openTopic, openURL, close, visib
<img src="/static/icons/book.svg" />
<InterfaceText context="Header">Texts</InterfaceText>
</a>
<a href="/django_topics" onClick={close}>
<a href="/topics" onClick={close}>
<img src="/static/icons/topic.svg" />
<InterfaceText>Topics</InterfaceText>
</a>
Expand Down
2 changes: 1 addition & 1 deletion static/js/NavSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ const WeeklyTorahPortion = () => {
</span>
<HaftarotLinks />
</div>
<a href="/django_topics/category/torah-portions" className="allLink">
<a href="/topics/category/torah-portions" className="allLink">
<InterfaceText>
<EnglishText>All Portions ›</EnglishText>
<HebrewText>פרשות השבוע ›</HebrewText>
Expand Down
4 changes: 2 additions & 2 deletions static/js/SourceEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const SourceEditor = ({topic, close, origData={}}) => {
const currentUrlObj = new URL(window.location.href);
const tabName = currentUrlObj.searchParams.get('tab');
Sefaria.postRefTopicLink(refInUrl, payload)
.then(() => window.location.href = `../../django_topics/${topic}?sort=Relevance&tab=${tabName}`)
.then(() => window.location.href = `../../topics/${topic}?sort=Relevance&tab=${tabName}`)
.finally(() => setSavingStatus(false));
}

Expand Down Expand Up @@ -96,7 +96,7 @@ const SourceEditor = ({topic, close, origData={}}) => {
const deleteTopicSource = function() {
const url = `/api/ref-topic-links/${Sefaria.normRef(origData.ref)}?topic=${topic}&interface_lang=${Sefaria.interfaceLang}`;
Sefaria.adminEditorApiRequest(url, null, null, "DELETE")
.then(() => window.location.href = `../../django_topics/${topic}`);
.then(() => window.location.href = `../../topics/${topic}`);
}
const previousTitleItemRef = useRef(data.enTitle ? "Previous Title" : null); //use useRef to make value null even if component re-renders
const previousPromptItemRef = useRef(data.prompt ? "Previous Prompt" : null);
Expand Down
2 changes: 1 addition & 1 deletion static/js/TopicEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const TopicEditor = ({origData, onCreateSuccess, close, origWasCat}) => {
onCreateSuccess(newSlug);
}
else {
window.location.href = `../../django_topics/${newSlug}`;
window.location.href = `../../topics/${newSlug}`;
}
}
}).fail(function (xhr, status, errorThrown) {
Expand Down
2 changes: 1 addition & 1 deletion static/js/sheets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ sjs.sheetTagger = {
}
var html = "";
for (var i = 0; i < topics.length; i++) {
html = html + '<a class="button" role="button" href='+topics[i].slug+'"/django_topics/">'+topics[i].asTyped+'</a>';
html = html + '<a class="button" role="button" href='+topics[i].slug+'"/topics/">'+topics[i].asTyped+'</a>';
}
$("#sheetTags").html(html);
},
Expand Down
2 changes: 1 addition & 1 deletion templates/static/nash-bravmann-collection.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h1>
<span class="int-en">The Jack Nash and Ludwig Bravmann Collection is a free, <a
href="topics/adin-steinsaltz">online library of Rabbi Adin Even-Israel Steinsaltz's</a> major commentaries in Hebrew and English. Interlinked with Sefaria’s vast and ever-growing corpus of Jewish text, the Nash-Bravmann Collection further integrates Rabbi Steinsaltz’s Torah into the Jewish library, while also bringing these already-renowned commentaries to an even wider global audience.</span>
<span class="int-he">האוסף על שם ג׳ק נאש ולודוויג ברוומן הינו
<a href="/django_topics/adin-steinsaltz">
<a href="/topics/adin-steinsaltz">
ספריה מקוונת חינמית הכוללת את הפרשנויות המרכזיות של הרב עדין אבן-ישראל שטיינזלץ</a>
בעברית ובאנגלית. בעצם שילובם של כתבי הרב שטיינזלץ באופן שוטף בספרייה ההולכת ומתרחבת של ספריא, אוסף נאש-ברוומן משמש כאמצעי להטמעה מעמיקה של תורתו בתוך שאר עולם המקורות היהודי, תוך כדי הנגשת הפרשנויות הנודעות האלו לקהילתנו העולמית.</span>
</p>
Expand Down

0 comments on commit 49aa8c7

Please sign in to comment.