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

Make links work when opened in a new tab using right click context menu #16

Merged
merged 4 commits into from
Oct 27, 2018

Conversation

ibnesayeed
Copy link
Contributor

This is an attempt to fix play-with-docker/play-with-docker.github.io#126, but not tested well.

index.js Outdated Show resolved Hide resolved
@ibnesayeed
Copy link
Contributor Author

Now, I have tested it and it seems to be working as expected.

@ibnesayeed
Copy link
Contributor Author

ibnesayeed commented Sep 25, 2018

@marcosnils I added the following line in the index.html file temporarily to test my changes:

<a href="/foo/bar?baz=blah" data-term="#myTerm" data-port="80">Click Here</a>

@marcosnils
Copy link
Contributor

@ibnesayeed still doesn't work in my case. If you go to the Docker for beginners tutorial and try to left click the click here link in a new tab it still doesn't work 😞

@ibnesayeed
Copy link
Contributor Author

ibnesayeed commented Sep 26, 2018

@marcosnils how did you try to test on the training site while these changes are not reflected there yet? The live site is using RawGit CDN from the dist directory. That means in order for it to be effective there, the change here needs to be merged and the dist files are to be regenerated. If you have any other means of testing it on the training site then I am not aware of that.

@ibnesayeed
Copy link
Contributor Author

The RawGit CDN used by the PWD to serve the SDK files is sunsetting. play-with-docker/play-with-docker.github.io#166

@marcosnils
Copy link
Contributor

@marcosnils how did you try to test on the training site while these changes are not reflected there yet?

@ibnesayeed just tried it again and it's not working for me. To test it locally I just serve the pwd.js from my macine using the README instructions in the repo and I change the _layouts/post.html (https://github.com/play-with-docker/play-with-docker.github.io/blob/master/_layouts/post.html#L53) and point it to http://localhost:8080/dist/pwd.js.

@marcosnils marcosnils merged commit 75a63e5 into play-with-docker:master Oct 27, 2018
@ibnesayeed
Copy link
Contributor Author

Serving /dist/pwd.js will not work until the dist is rebuilt because changes are made in the index.js file.

@marcosnils
Copy link
Contributor

marcosnils commented Oct 27, 2018 via email

@ibnesayeed
Copy link
Contributor Author

Yes, that's how I tested it locally earlier, but I thought you were missing that as you said it was not working for you while it does for me.

@marcosnils
Copy link
Contributor

marcosnils commented Oct 27, 2018 via email

@Deifinger
Copy link

It works well. Thank you guys @marcosnils @ibnesayeed

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

Successfully merging this pull request may close these issues.

"Click here to load the website" points to wrong URL
3 participants