how to popup the url in same window

service buzz
Tera Contributor

hi everyone,

I am using a following HTML code in one of my portal widget. 

<div>
<!-- your widget template -->
<div>
<button type='link' ng-click="c.generatePassword()"style="color:black;">url</button>
</div>
</div>

for now when we click on the url it is opening in new tab but my req is to open in same frame like for example when we open a record producer and click on preview blink, the form opens in same frame like wise  I want to implement the same with the mentioned url in the widget.

please help.

Thanks.

 

15 REPLIES 15

Hi,

I suggested to use anchor tag like below.

<a href="{{ url}}" ng-click="c.generatePassword()"  target="_self">{{url}}</a>

I tried the above code but when clickedfind_real_file.png on it , the form has broken

I am able to click on the url but when clicked this is what happening and url gets opened in new tab

The url is opening in the same tab, hence you see that issue.

What exactly the url suppose to render? Can you copy that url and open in a new tab and check what you see.

Actually I want to popup the url in same window not opening the url in same frame