Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

how to manage route.pushstate detection on init?

$
0
0
Let's say that an app is at /app/. Now, let's say that a user clicks a link from an email going to /app/route/. It would no doubt be configured to serve /app/index.html, but how can the main app class, upon initializing, detect where it is (window.location.href) in relation to its internal route (/app/route/)? I wouldn't want to load the homepage class/view on a route that should be loading something else.

Viewing all articles
Browse latest Browse all 3491

Trending Articles