Direct Links
See original GitHub issueI’m having some trouble. I’d like my users to be able to use direct links.
My server supports SPA by redirecting everything that isn’t the root url to a 200.html page.
A direct link isn’t running the route to render.
I’ve sort of got around it by doing:
window.onload = () ->
ref = "/" + (location.pathname + location.search).substr(1)
router.updatePageLinks()
if ref != window.loaded
router.navigate(ref)
And each route updates what window.loaded should be.
This gets the right page to render. However, the URL doesn’t update.
Any thoughts?
Edit:
Minimal example here.
Click the link, click Test Link, and then click the title, and it works.
But, go here, and click the title, the page re-renders… But the url bar doesn’t update.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Direct Link - Global deliveries
Direct Link creates borderless e-commerce solutions for global delivery. We customize solutions that expand our clients' markets worldwide.
Read more >DirectLink: Home
DirectLink Offers Local High-Speed Broadband Internet (Fiber, DSL) and Telephone (Phone, Voice) Service and much more in the Canby and Mt. Angel Oregon ......
Read more >What's a direct link? - Widen Connect
Direct links can be selected when you share an asset from a portal. They are the URL from within the embed code that...
Read more >DirectLinks
This extension circumvents certain techniques used by Google and Facebook to track link clicks. When you click a link in Google search ...
Read more >Direct Links - University of Mary Washington
Our community of passionate, curious minds is one that turns values into vision and ideas into action. Find yourself here. You are here:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@flowen can you please try calling
resolve
once you finish with the routes definition (I mean theon
calls).@krasimir ooohhh completely overlooked that. Thanks! fixed it for me!