Recent searches


No recent searches

Redirect a link from the Community Topics page

Answered


Posted Jul 12, 2022

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 comments

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


Please sign in to leave a comment.

Didn't find what you're looking for?

New post