Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open link in new tab doesn't seem to work in Zetta Browser #11

Open
landlessness opened this issue Oct 13, 2014 · 6 comments
Open

Open link in new tab doesn't seem to work in Zetta Browser #11

landlessness opened this issue Oct 13, 2014 · 6 comments
Labels

Comments

@landlessness
Copy link
Contributor

If I COMMAND-Click a link in the Zetta browser it doesn't open the link in a new tab as I expect it to do. Instead it treats the Click like a regular, old click.

@13protons
Copy link
Contributor

At first glance, this looks like it's being caused by javascript handling the click, rather than the browser handling it natively. I'll see if I can change the way that click is handled to get the expected behavior.

@kevinswiber
Copy link
Member

@alanguir There are no href attributes assigned to the links. Angular handles the click event. We could figure out the href values, but new tabs will result in full API reloads. Without saving to some kind of browser storage, that's the best we can do. Still... sounds do-able. I made sure each page has a link that can be shared. The lack of share-able links is a huge downside to single page apps, and I didn't want us to suffer the same fate.

@13protons
Copy link
Contributor

@kevinswiber re:making sure each page has a link that can be shared, do you mean copying the url from the browser address bar on any page in the zetta browser should be sharable?

@kevinswiber
Copy link
Member

Yes.

Sent from my iPhone

On Oct 13, 2014, at 10:42 PM, Alan Languirand [email protected]
wrote:

@kevinswiber https://github.com/kevinswiber re:making sure each page has
a link that can be shared, do you mean copying the url from the browser
address bar on any page in the zetta browser should be sharable?


Reply to this email directly or view it on GitHub
#11 (comment).

@13protons
Copy link
Contributor

@kevinswiber If we make this an href will we still have to reload the full API each time?

https://github.com/zettajs/zetta-browser/blob/master/src/partials/overview.html#L33

It might actually be easier to chase down the keybindings:

http://stackoverflow.com/questions/3902635/how-does-one-capture-a-macs-command-key-via-javascript

@kevinswiber
Copy link
Member

Yup.

On Wed, Oct 29, 2014 at 11:18 AM, Alan Languirand [email protected]
wrote:

@kevinswiber https://github.com/kevinswiber If we make this an href
will we still have to reload the full API each time?

https://github.com/zettajs/zetta-browser/blob/master/src/partials/overview.html#L33


Reply to this email directly or view it on GitHub
#11 (comment)
.

Kevin Swiber
Projects: https://github.com/kevinswiber
Twitter: @kevinswiber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants