Skuid Home Page Links

  • 1
  • Problem
  • Updated 3 years ago
  • Solved
  • (Edited)
Hi, Skuid Superheroes.

I have never been able to get the snippet to make links open in the parent window work on my Skuidified home page--they always open within the home page component iframe and nest. I have the snippet in place, but the links are still opening within the frame instead of the parent. Also, we have a few row actions that are URL redirects that are also opening within the frame, even if you choose parent for the "Open URL in".

Any ideas on what else could be affecting how they open?

Thanks!

PS: This is the snippet I'm referring to:

(function(skuid){
var $ = skuid.$;
$(function(){
$('head').append(
$('<base target="_parent">')
);
});
})(skuid);
Photo of Sarah Hughes

Sarah Hughes

  • 454 Points 250 badge 2x thumb

Posted 3 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Can you try a HTML enabled template with the following:
<a target="_parent" href="yoururlhere";>TITLE</a>
Photo of Sarah Hughes

Sarah Hughes

  • 454 Points 250 badge 2x thumb
Pat, that worked. I also just recreated the whole page and re-wrote the snippet and my actions and things are working now. Not sure where I went wrong, but I righted it. :)
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Good to hear.
Photo of Sarah Hughes

Sarah Hughes

  • 454 Points 250 badge 2x thumb
I spoke too soon. The detail page links are back to opening within the nested view. Arghhhhhhhhh. I know for certain that they were NOT doing this yesterday, but they definitely are again today.

The links I have built in actions as URL Redirects are opening correctly, though.

Thoughts?