jack2
9 أبريل 2019، 9:28م
1
I’m using the Custom Header Links component and I’m getting this strange behavior:
In my prod instance, clicking a header link reloads Discourse entirely to the target page.
In my dev instance (without docker), clicking a header link transitions smoothly to the target page without reloading Discourse.
I noticed that:
In my prod instance, <a>
tags have a data-auto-route="true"
attribute.
In my dev instance, <a>
tags don’t have this attribute.
It seems the same kind of problem happened in the past (see here ), before the official header components were released.
إعجابَين (2)
syl
26 أبريل 2019، 10:54م
2
Stephen
(Stephen)
26 أبريل 2019، 11:02م
3
Reverting the change from @j.jaffeux breaks internal links in a different way. I wouldn’t use a forked plugin - it just means when this gets fixed for real you won’t receive the changes automatically.
The commit in question:
https://github.com/discourse/discourse-custom-header-links/commit/bfda9d3b50bd8e027024b62aa0b7e68611248073
إعجاب واحد (1)
Johani
(Joe)
4 مايو 2019، 2:51م
5
This is fixed in the official component , internal links will no longer cause a full page reload.
Thanks for reporting the issue @jack2
5 إعجابات