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

External Link with the same URL #38

Open
Bluxart opened this issue Mar 8, 2014 · 3 comments
Open

External Link with the same URL #38

Bluxart opened this issue Mar 8, 2014 · 3 comments
Milestone

Comments

@Bluxart
Copy link

Bluxart commented Mar 8, 2014

Hi, I make my new portfolio with this fantastic script.

But I have a little issue, I have an page with a link with target="_blank" but when click the page load inside the content, and I want to not load the page inside the content and load the new page into new tab.

A solution for this?

@beezee
Copy link
Owner

beezee commented Mar 8, 2014

@Bluxart I do think it's sensible for djax to automatically ignore links with target="_blank". Would be happy to merge a pull request for it if you're interested in making the change, otherwise I'll add this to the list for the next time I'm able to spend some time working on djax.

@Bluxart
Copy link
Author

Bluxart commented Mar 8, 2014

Hi and thanks for your response the problem appear only if the href has the same url:

For example:
My URL: http://www.mydomain.com
Target Blank URL: http://www.diffdomain.com/content/

a href="http://www.diffdomain.com/content/" target="_blank"
( This works correctly )

But if I have a page with another design and content the target=_blank not function.
My URL: http://www.mydomain.com
Target Blank URL: http://www.mydomain.com/new-design-content/

href="http://www.mydomain.com/new-design-content/" target="_blank"
Here the DJAX load the content inside the same page without load the content in new tab.

@beezee beezee added this to the next update milestone Mar 16, 2014
@akinayturan
Copy link

hi man that's not the real solution but in the page if u search target it is working
at least worked for me u can see ur answer #27 (comment)

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

No branches or pull requests

3 participants