최근 검색


최근 검색 없음

Samantha Chavez's Avatar

Samantha Chavez

가입한 날짜: 2021년 4월 16일

·

마지막 활동: 2024년 1월 30일

팔로잉

0

팔로워

0

총 활동 수

64

투표 수

25

플랜 수

25

활동 개요

님의 최근 활동 Samantha Chavez

Samantha Chavez님이 에 댓글을 입력함

커뮤니티 댓글 Feedback - Ticketing system (Support)

Melvin Laguren,

Happy to test this for myself and give you feedback hehe :)

댓글 보기 · 2023년 1월 04일에 게시됨 · Samantha Chavez

0

팔로워

0

투표 수

0

댓글


Samantha Chavez님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Help center and community

Justin Federico

I actually moved my code to the document_head.hbs template at the bottom. I don't remember why, but I think I couldn't get it to work properly in the script.js file. At least I think I had consistency issues. I am not a pro coder so my apologies here! The final version of what worked for me ended up being the below. For me, I needed end users and those not signed in to redirect but wanted agents and admins to still see the old one as I remerged the product brand help centers into one single help center (so I could leverage AB in our platform) and my team still needed to see the old help centers. So you ignore the extra in the if portion.


댓글 보기 · 2022년 2월 01일에 편집됨 · Samantha Chavez

0

팔로워

0

투표 수

0

댓글


Samantha Chavez님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Help center and community

One thing I did not account for was users who are not signed, which is anonymous by role identification. You are probably experiencing this if you are testing while signed out. I tested with an end user account I use. I am also always signed in for Support, so I forgot to account for that. I am sure there is a more efficient way to handle this if you want all users even internal redirected, for me I am doing work on one help center and want to direct only end users to another help center in the meantime, but need internals to see the hc in the meantime. I am learning deeper usage of JS as I go. Ha!  You can try the below for a quick solution and then play around with removing the if and keeping old domain (window.location.host == 'olddomain.com') portion. 

$(document).ready(function() {
  if(HelpCenter.user.role == "end_user" || HelpCenter.user.role == "anonymous" && window.location.host == 'olddomain.com') {
      window.location.href = 'newdomain.com';
  }
});

댓글 보기 · 2021년 11월 12일에 편집됨 · Samantha Chavez

0

팔로워

1

투표

0

댓글


Samantha Chavez님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Help center and community

Scott Haugsjaa

I did some tweaking for mine and this works. I put it at the top of the script.js file. You will see a quick page flash and then the redirect. 

$(document).ready(function() {
  if(HelpCenter.user.role == 'end_user' && window.location.host == 'olddomain.com') {
      window.location.href = 'newdomain.com';
  }
});

댓글 보기 · 2021년 11월 11일에 편집됨 · Samantha Chavez

0

팔로워

0

투표 수

0

댓글


Samantha Chavez님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Help center and community

You are fast and a life saver. Thank you!

댓글 보기 · 2021년 11월 11일에 게시됨 · Samantha Chavez

0

팔로워

0

투표 수

0

댓글


Samantha Chavez님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Help center and community

@... the Website re-direct link is broken. 

댓글 보기 · 2021년 11월 11일에 게시됨 · Samantha Chavez

0

팔로워

0

투표 수

0

댓글


Samantha Chavez님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Help center and community

Ha! worked like a charm. I should have asked here before spending days trying to figure it out myself. You are a gem, thank you. 

댓글 보기 · 2021년 11월 02일에 게시됨 · Samantha Chavez

0

팔로워

0

투표 수

0

댓글


Samantha Chavez님이 에 게시물을 만듦

게시물 Q&A - Help center and community

Does anyone know of an easy way to omit the homepage from being included in the search results breadcrumbs? Since the homepage is a given for a single help center, it seems rather silly that is in the breadcrumb path output . I would rather the category be the first in the path because our categories are our products. Any help would be appreciated. 

 

2021년 11월 02일에 게시됨 · Samantha Chavez

0

팔로워

2

투표 수

3

댓글


Samantha Chavez님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Help center and community

This is not a redirect, but it was intended to be a quick solution to a common customer complaint from my customers. They wanted a prompt when not logged in vs a generic "no results" when looking for articles.  I did a very cheeky attempt without putting a whole lot of brain power into it. I am putting it here for you Matthew Rawls in case it sparks a path or a better idea fo your use. I have sure there is better ways of doing this, but I did not want to waste to much time on it. (Not a pro, I poke and poke until I get what I need when it is not built in to the theme.) I hope this at least helps a little. 

I basically added an {{#isnt signed_in}} statement to my search_results.hbs right before the final {{else}}. 

{{#isnt signed_in}}

You are not logged in to the help center. Please log in to view the search
Log in


{{/isnt}}
{{else}}


{{t 'no_results_unified'}}
{{#link 'help_center'}}
{{t 'browse_help_center'}}
{{/link}}


{{/if}}

댓글 보기 · 2021년 11월 01일에 게시됨 · Samantha Chavez

0

팔로워

2

투표 수

0

댓글


Samantha Chavez님이 에 댓글을 입력함

커뮤니티 댓글 Discussion - Tips and best practices from the community

@... This tool literally saved me so much time. You really deserve tacos for life!

댓글 보기 · 2021년 10월 13일에 게시됨 · Samantha Chavez

0

팔로워

1

투표

0

댓글