lerni

Lately I discovered that RewriteRules in .htaccess do not cascade if there are RewriteRules in subsequent .htaccess files. For example if you enforce httpS per public/.htaccess it won't be respected in assets per default. May your browser still redirecting to httpS but it won't happen server-side. So far best approach I've found "fixing" it, is to use RewriteOptions InheritDown in public/.htaccess. I'm about to document this and would love, if somebody else would test it and confirms it's working as expected also and especially with protected files. See also https://github.com/silverstripe/silverstripe-assets/issues/353

Show 1 attachment(s)
GitHub  
RewriteEngine in assets · Issue #353 · silverstripe/silverstripe-assets

In silverstripe-assets RewriteEngine On is set and since it's a subfolder of public, it "resets" the rewrite rules from there - they won't be inherited to public/assets. If you fo...

Hide attachment content
wmk

the best way to redirect to https is in the virtualhost config. But that's a good catch!

lerni

@wmk what I wrote... "if you don't have access to vhost-config". Anyway InheritDown conflicts with /resources/.htaccess unfortunately :(

lerni

...increase execution time 😉 Or if some classes like a gallery-element suffer more, you may just trigger the images/caches to be build onAfterWrite?

lerni

I've tried before & after in all variants... well set a global and check but awhh

lerni

With ss 3.7 I use a ShortCode (https://github.com/lerni/hubspot/blob/master/src/kraftausdruck/extensions/HubSpotRequestExtender.php#L18). Also fluent, jonom/silverstripe-share-care & tractorcow/silverstripe-opengraph is also in the mix. For some reason the ShortCode fires 3 times. If share&care is removed just twice and if opengraph is also removed just once... all of those have extensions on Page. I removed my custom config but still, the behaviour is the same. I wonder how it's possible to fire the ShortCode just once and keep the modules that cause this or find the cause

Show 3 attachment(s)
GitHub  
lerni/hubspot

A SilverStripe module to add HubSpot Tracking Code and manage per SiteConfig (CMS) & Page extension - lerni/hubspot

GitHub  
lerni/hubspot

A SilverStripe module to add HubSpot Tracking Code and manage per SiteConfig (CMS) & Page extension - lerni/hubspot

GitHub  
lerni/hubspot

A SilverStripe module to add HubSpot Tracking Code and manage per SiteConfig (CMS) & Page extension - lerni/hubspot

Hide attachment content
lerni

@wmk tutorial says it should be installed globally https://www.gatsbyjs.org/tutorial/part-zero/#using-the-gatsby-cli

Show 1 attachment(s)
GatsbyJS  
Set Up Your Development Environment

Before you start building your first Gatsby site, you’ll need to familiarize yourself with some core web technologies and make sure that you…

Hide attachment content
lerni

I go now with <%t BlahClass.STRING "none" %> for all repeated instances