Git Product home page Git Product logo

Comments (3)

mtrpcic avatar mtrpcic commented on August 20, 2024

I'm trying to recreate the scenario you described but so far haven't been able to. I'm testing it with the example page here. I've tried "right click -> open in new tab", mousewheel middle-click, and command+click. All testing was done on OSX 10.6 in FireFox and Chrome. Could you give me a bit more details? (PathJS version, browser, etc?).

from pathjs.

dolarsrg avatar dolarsrg commented on August 20, 2024

Hi,

Thanks so much for the answer!

I see. I'm using the same brosers and OS than you. I think the difference in my scenario is that I'm using HTML5 integration (not the # one).

Here I have the problem I'm describing: http://mtrpcic.github.com/pathjs/html5_basic.html

But it's working perfectly in the hashtag one.

from pathjs.

mtrpcic avatar mtrpcic commented on August 20, 2024

HTML5 Pushstate does not support being opened in a new tab. This is because the path is a fully qualified one, which gets sent entirely to the HTTP server before PathJS can be loaded. This was outlined in the Wiki.

To properly support "open in a new tab", you must have that actual full route, server side, return the layout/entire DOM that you want on an HTTP request, and also render only the content subset you would like upon an AJAX call. This is a server side issue, and not dependant on PathJS.

from pathjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.