-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with dynamic routes #3
Comments
I'm not sure to understand. From what I see in your code you don't have any transition provided to Highway. If you don't see the window reloading on click on your links but only the URL being updated this means Highway does his job and you might just need to provide a default transition for your pages. Otherwise I'll need more information (logs, errors,...) in order to help you. Thanks, |
@jesperlandberg Do you have the |
@Anthodpnt the issue is with pages that have dynamic slugs, /:id for example. All pre defined pages works fine, but dynamic ones like blog posts and such seem to have issues. The issue for me (and a friend @westwho is also trying out highway) seem to be that the second time we click a link to a blog post or dynamic page, a hard load of the pages happen. "loads the site" -> clicks and enter blog post (works fine) -> goes back to home page -> clicks any blog post again (this time causing a hard load). There are no errors show in the console or other logs. I will try put it up on a test server for you to see later today. Here is a little video showcasing the issue: |
In addition to @jesperlandberg, there is always a hard refresh of the page once a link is loaded dynamically in the router view and clicked. The transition works, but after about 100ms there is still a hard refresh. Simple example:
|
Thanks for your feedback! |
@deJong yeah, exactly the problem I tried to explain haha, you did it better=) |
Ok I see, should be an issue with event binding. Thanks again ! |
Should be fixed in v1.3.4. Can you please update your package and tell me if this solves your issue please ? Thanks a lot, |
@Anthodpnt I'm afraid the issue still remains for me=/ |
Did you update your The problem came from these lines: // Now we show our content!
await this.To.show();
// Bind events
this.bind(); The I updated the basic-setup example top make sure it was working by adding links in the Anthodpnt |
@Anthodpnt My mistake. I ran a command to update my package.json, which displayed 1.3.3 -> 1.3.4 ... but now I saw it didn't actually update my package file for some reason. However, it seems to work fine now=) Thanks for the quick update! |
Ok perfect ! Thank you for your helpful feedback! |
Works like a charm @Anthodpnt 🔥. Thanks for the quick solution. |
Ok perfect! I'll close the issue then. Anthodpnt |
Hi,
Thanks for this barba alternative=)
Currently testing it out but I'm having one issue. Links to Dynamic pages (Wordpress single pages) doesn't work properly. It works the first click/entry after a page refresh, but going between pages and then trying to enter a dynamic route causes a hard refresh. Any idea why?
JS
Single renderer:
Single page file (twig templating)
The text was updated successfully, but these errors were encountered: