MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 209 forks source link

Enable external link #3

Closed winterlightning closed 12 years ago

winterlightning commented 12 years ago

Sometime I want to create a link that opens in the browser. I do that by creating a link with target="_blank" but this doesn't work.

Is there anyway to do this?

Thanks!

folletto commented 12 years ago

We had a similar request in Baker and we solved it with this: https://github.com/Simbul/baker/issues/118

http://example.com/path/to/file.html?referrer=baker

We choose this solution when we saw that people wanted to include things like iframes (Google Maps) and doing that by default would have broken libraries. At the same time in this way we are also giving a nice tracking information to the landing site that now gets also the source of the link. :)

We'd love to check your solution too and see if they overlap so we can "standardize" it. :)

folletto commented 12 years ago

It seems that right now we found a problem with that approach: https://github.com/Simbul/baker/issues/255

liamks commented 12 years ago

@maccman I think this can be closed as well!

maccman commented 12 years ago

Yup.

folletto commented 12 years ago

Uh? :)

Hey @maccman how did you solve this? As I said I'd like to see if we can use a common solution. :)

maccman commented 12 years ago

read the readme - macgap.app.open()

folletto commented 12 years ago

Oh, ok. You worked around that. :)

Ok, thanks. :)