-
Notifications
You must be signed in to change notification settings - Fork 14
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
Works on first page displayed #5
Comments
Hi @bdillahu, unfortunately I have no idea. Maybe this can be a modular page issue... Are you still using External Links on your site? It seems like you disabled it. Can you enable it again or provide me here with the version of Grav + plugin you are using plus a minimal working example showing the issue? |
Just upgraded Grav to latest: % bin/gpm version !7035 External links reports latest:
It is enabled on craftacraft.com http://craftacraft.com/ - Here’s the config file (maybe I have something wrong in there)?: Global plugin configurationsenabled: true # Set to false to disable this plugin completely Default options for External Links configuration.exclude: - localhost/* # (any RegExp can be used)- img.domain.com/*- store.craftacraft.com/*- www.craftacraft.com/*- craftacraft.com/*Global and page specific configurationsprocess: true # Filter external links mode: "active" # active = process and parse all links; Bruce C. Dillahunty
|
Dear @bdillahu , thanks. I inspected your website and it seems, that External Links is indead active, for example a link on your site looks like this <a class="external-link no-image" data-title="This link will take you to an external web site. We are not responsible for their content." rel="nofollow" target="_blank" href="https://vimeo.com/channels/910955">video blog</a> However, no stylesheet is added to your pages! There are two possibilites left, either it is due to your customized theme or you have another config overriding the default values (located at |
Really weird one… I tried both of your suggestions to no effect. The first hit to the site after a cache clear works, regardless of theme or external_links.yaml file. Then you refresh the page, or go to another page on the site, and you’ll never see the link icons again. Reeler the cache and that first hit will work again. Of course on a production site, you have to be the next one to hit it (not that I get a lot of traffic, so not that hard to test). I’ve tried to look and see if my ISP (Dreamhost) is doing anything with the caching, but I thought I had it all turned off/normal. If you think of anything else to look at, let me know :-) Appreciate the help! Bruce Bruce C. Dillahunty
|
Ah, we're getting closer! :-) Just one try, because it seems like this is really a hidden bug I havn't foreseen. For testing purposes (you can use your custom theme and config, it doesn't matter) I'm curious to know what happens if you switch off caching permanently. I guess you will see the icons then. |
Sure enough.. killing caching causes the icons to reappear and stay there. I tried some combinations of the various options (TWIG/cache gzip compression, etc.) and didn’t find anything that seemed to make a difference. Bruce Bruce C. Dillahunty
|
Ok, thanks.Then I know the problem. It will be fixed in the next release. Thanks for digging in and finding the bug! :-) |
Sure enough… seems to have fixed it :-) Thanks so much for the help on this! Bruce Bruce C. Dillahunty
|
No problem! And thanks for digging in :-D |
I've got one I can't figure out how to debug... plugin works great on the first page displayed (doesn't matter what it is, as nearly as I can tell), then when I click a link, the next page won't have links marked. If I go back to the first, the link marks are gone.
Any ideas what to look at?
www.craftacraft.com is the site, if looking at the public side would help
Thanks,
Bruce
The text was updated successfully, but these errors were encountered: