djax icon indicating copy to clipboard operation
djax copied to clipboard

External Link with the same URL

Open Bluxart opened this issue 10 years ago • 3 comments

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?

Bluxart avatar Mar 08 '14 16:03 Bluxart

@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.

beezee avatar Mar 08 '14 17:03 beezee

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.

Bluxart avatar Mar 08 '14 17:03 Bluxart

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 https://github.com/beezee/djax/issues/27#issuecomment-20895003

akinayturan avatar Feb 23 '15 09:02 akinayturan