# 🔥 Help: Published doc button - open page in the same tab

**URL:** <https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457>\
**Category:** Ask the Community\
**Created:** [August 8, 2024, 7:08pm UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457 "2024-08-08T19:08:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Astha\_Parmar](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/astha_parmar/32/29425_2.png) [@Astha\_Parmar](https://connect.superhuman.com/u/Astha_Parmar)\
**Post date:** [August 8, 2024, 7:08pm UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/1 "2024-08-08T19:08:14Z")

</div>

Hey Folks, I need some urgent help. I have a published doc, where I am including a ‘Next’ button at the end of each page to create a sort of guided navigation.

The ‘Next’ button opens the right published page (I used open hyperlink and added links to the published doc) – but in a new tab each time, which is confusing.

Is there a way to make it open these in the same tab?

---

<div class="post-metadata">

**Author:** ![Felipe\_Arnhold](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/felipe_arnhold/32/50382_2.png) [@Felipe\_Arnhold](https://connect.superhuman.com/u/Felipe_Arnhold)\
**Post date:** [August 8, 2024, 7:17pm UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/2 "2024-08-08T19:17:13Z")

</div>

This occurs because the link that you put in the buttons are for the shared version of the doc (the navigation bar keeps in the left part of the screen) instead of the published one.

To accomplish what you are trying, I dont use buttons, but the page reference with @ command and display as a card. Now, when published, you can navigate over this “buttons” without opening a new tab.

![pageRef](https://global.discourse-cdn.com/coda1/original/3X/8/e/8e378e290a93fb9ab7f99ce9ff203a9ea114cfc9.gif)

---

<div class="post-metadata">

**Author:** ![Astha\_Parmar](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/astha_parmar/32/29425_2.png) [@Astha\_Parmar](https://connect.superhuman.com/u/Astha_Parmar)\
**Post date:** [August 8, 2024, 7:43pm UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/3 "2024-08-08T19:43:31Z")

</div>

Aaaah, thank you, thank you!!! I was down to the wire and so grateful for your quick response!

---

<div class="post-metadata">

**Author:** ![Gun\_Karagoz](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/gun_karagoz/32/43546_2.png) [@Gun\_Karagoz](https://connect.superhuman.com/u/Gun_Karagoz)\
**Post date:** [August 11, 2024, 5:49pm UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/4 "2024-08-11T17:49:36Z")

</div>

I’m having the same issue with a custom button action. I’m trying to use RunActions(OpenWindow(url)) but it’s always opening in new tab.

I tryed

1. url(thisDocument(object) + “/slug”) \> works on original doc, not on published
2. url(“/slug”) \> didn’t work - goes to [https://slug/](https://slug/)
3. url(“[my-published-coda-link.com/slug](http://my-published-coda-link.com/slug)”) \> opens in new tab

Is there a way open to open in same tab? I just want users to follow the steps by clicking action buttons.

---

<div class="post-metadata">

**Author:** ![Astha\_Parmar](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/astha_parmar/32/29425_2.png) [@Astha\_Parmar](https://connect.superhuman.com/u/Astha_Parmar)\
**Post date:** [August 11, 2024, 7:11pm UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/5 "2024-08-11T19:11:52Z")

</div>

Hi @Gun_Karagoz – are the links to pages within the same doc, or to pages/links outside the doc?

If the links are the pages within the doc, then @Felipe_Arnhold 's recommendation to use cards (/link → edit → display as card) solves the issue.

If the link is to a page outside of the doc, then I don’t know a solution to it…

---

<div class="post-metadata">

**Author:** ![Gun\_Karagoz](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/gun_karagoz/32/43546_2.png) [@Gun\_Karagoz](https://connect.superhuman.com/u/Gun_Karagoz)\
**Post date:** [August 11, 2024, 8:41pm UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/6 "2024-08-11T20:41:34Z")

</div>

No, this workaround doesn’t solve my issue since i would like to run multiple actions upon a click and navigate user to next page at the end. Pages are in the same doc, I’m just trying to achieve sth like below:

1. get username in page 1
2. when submitted (button clicked), add user to a table and time do couple of things and switch to page 2 automatically.
3. same for page 2 and 3 and I want to put another option to send user back to page1 in the end.

---

<div class="post-metadata">

**Author:** ![Christiaan\_Huizer](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/christiaan_huizer/32/28269_2.png) [@Christiaan\_Huizer](https://connect.superhuman.com/u/Christiaan_Huizer)\
**Post date:** [August 12, 2024, 10:58am UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/7 "2024-08-12T10:58:55Z")

</div>

@Gun_Karagoz

- create object like a line, a controller or a button
- take the url of that object
- use a button with openWindow(“link to the object”)  
cheers, christiaan

---

<div class="post-metadata">

**Author:** ![Gun\_Karagoz](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/gun_karagoz/32/43546_2.png) [@Gun\_Karagoz](https://connect.superhuman.com/u/Gun_Karagoz)\
**Post date:** [August 12, 2024, 4:10pm UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/8 "2024-08-12T16:10:22Z")

</div>

@Christiaan_Huizer as I said in [previous reply](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/3#:~:text=url(thisDocument(object)%20%2B%20%E2%80%9C/slug%E2%80%9D)%20%3E%20works%20on%20original%20doc%2C%20not%20on%20published), it works on original doc, not on published doc. It opens original doc page in new window from published page.

---

<div class="post-metadata">

**Author:** ![Astha\_Parmar](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/astha_parmar/32/29425_2.png) [@Astha\_Parmar](https://connect.superhuman.com/u/Astha_Parmar)\
**Post date:** [August 13, 2024, 6:04am UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/9 "2024-08-13T06:04:31Z")

</div>

Hi @Gun_Karagoz , I am out of my depth here…I tried using the hyperlink formula to reveal the published page link with an if statement, but it still seems to open it in a new window.

Might be a question for support?  
-A

---

<div class="post-metadata">

**Author:** ![Gun\_Karagoz](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/gun_karagoz/32/43546_2.png) [@Gun\_Karagoz](https://connect.superhuman.com/u/Gun_Karagoz)\
**Post date:** [August 15, 2024, 2:40am UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/10 "2024-08-15T02:40:02Z")

</div>

I found the solution 🙂

OpenWindow(“/\_suSOMEID” ) works on both pages (original and published doc.)

I just copied linked to next page and used the last portion in the link starting with \_su and didn’t use url function then it worked!

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/system/32/24484_2.png) [@system](https://connect.superhuman.com/u/system)\
**Post date:** [August 18, 2024, 2:40am UTC](https://connect.superhuman.com/t/help-published-doc-button-open-page-in-the-same-tab/50457/11 "2024-08-18T02:40:23Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
