djax
djax copied to clipboard
External Link with the same URL
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 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.
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.
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