최근 검색


최근 검색 없음

Redirect a link from the Community Topics page

답변함


2022년 7월 12일에 게시됨

On the Topics page, is it possible to change the link behind a particular topic, in this case, 'Release Notes', to go somewhere other than to the page that displays the topic?


0

5

댓글 5개

image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

Hi fkrugerx

Follow the below points:-

i). Go to the 'community_topic.hbs' page

ii). Add the template name via copy-paste the below code at the top area..

<script>
var tempName = 'community-topic-page';
</script>



Screenshot:-

 

iii). Now, go to thescript.js file and paste the code at the bottom area.

if(tempName == 'community-topic-page') {
var _x = $("a.striped-list-title:contains(Release Notes)").attr("href", "TYPE YOUR EXTERNAL URL");
}


Screenshot:-




Add your URL here:-

 

 

 

If any issue do let me know :)

 

Thanks

Team

0


Hi fkrugerx and Ifra Saqlain I'm trying to do the same thing with one of our community sections but unfortunately the redirect doesn't work. I've used the exact same code as above but replaced the contains value to look for "Announcements" as that's our section title.

The external URL has been updated to be the section within Guide for our new announcements too and nothing seems to happen unfortunately. fkrugerx Were you able to get the code working as intended?

0


image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

@Scott Wallace, can you share the URL of that page where you want to do the changes regarding external URL?, then I will share the exact solution for your query.

If not, then share the screenshot of that section and page name as well.

0


Ifra Saqlain The community page is here and it should redirect to this section in Guide.

The code looks as follows:-

0


image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

Scott Wallace, use the given code

$("a.button.button-large:contains(What's New?)").attr("href", "https://connect.act-on.com/hc/en-us/categories/13386837131927-What-s-New");

 

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물