OpenWindow() not opening in new tab

The documentation states that OpenWindow() will open a url in a new tab.

On Edge, using OpenWindow() with a coda document URL will result in the page opening in the current tab which is not desired or describe behaviour

Before anyone jumps onto fixing this, please remember that we use OpenWindow() a lot for inside-the-doc navigation like going to a different page, focusing a view, or opening a modal. So it’s actually desired that the provided URL first gets matched against the current document’s router, and only if nothing matches it opens the new tab.

Perhaps a compromise would be to open absolute URLs in a separate tab and relative URLs in current tab. Or best, add an argument to OpenWindow() function to choose whether to open the URL in a separate or current tab.

3 Likes

We are using it to show a task list for a document the user is looking at. Our use case is that the user can easily jump to a planning page configured to the page they are looking at while still keeping the coda document page in view.

Having an argument for is opening a new tab, window, or self would be ideal as paul suggested.

I’ll take your suggestion and raise it :slight_smile:
I would like to have an optional argument to choose whether to open the URL in current tab, new tab or new window, there is a valid use case for each of these options

2 Likes

Anything new since then? :thinking:

1 Like

Is it possible yet to have a link to another page within a coda doc open in a new tab or window? I am building a wiki and navigation is terrible because users cannot easily go back to the page they were on. Any advice is appreciated - I am a relatively new user of Coda.

1 Like

I don’t think so… Im dealing with the same issue and wish that was possible…

Sincerely
Jannis

1 Like