# |
Oct 3rd 2018, 10:03 |
martin |
ah ok |
# |
Oct 3rd 2018, 10:03 |
neon1024 |
@martin Depends how you setup your form fields, and how many levels away the associations is and what you put into the patchEntity config |
# |
Oct 3rd 2018, 10:02 |
martin |
it does not auto dirty when you add something to the array? |
# |
Oct 3rd 2018, 10:02 |
slackebot |
they’re obvious, and thus easier to understand, without being hidden in the web server config |
# |
Oct 3rd 2018, 10:02 |
neon1024 |
@birdy247 Yeah, I built a whole mapping thing into the middleware so we could manage them in the middleware. We had a discussion in the office and it was agreed that having the redirects in the application was better than in the server config, for a number of reasons. That they are more relevant in the project code, easier to update, versioned, and don’t require re-running Ansible each time. It also means that a new developer can see them, |
# |
Oct 3rd 2018, 10:02 |
martin |
ok now it works :) |
# |
Oct 3rd 2018, 10:01 |
martin |
, true |
# |
Oct 3rd 2018, 10:01 |
martin |
ok |
# |
Oct 3rd 2018, 10:01 |
neon1024 |
@martin Yes it is, you could set the associated property as dirty `$entity->setDirty('examples')` |
# |
Oct 3rd 2018, 10:00 |
birdy247 |
so all redirect were done in the middleware? |
# |
Oct 3rd 2018, 10:00 |
neon1024 |
Well we used a 301 for some stuff, a 302 for other stuff, and a few we left going through the middleware as 404 |
# |
Oct 3rd 2018, 10:00 |
martin |
I’m adding something the entity’s “hasMany”. But it does not save it. When I pr() the entity I don’t see the relation dirty. I think this is needed for saving? |
# |
Oct 3rd 2018, 10:00 |
neon1024 |
Konami code anyone!? |
# |
Oct 3rd 2018, 09:59 |
birdy247 |
301 is the logical |
# |
Oct 3rd 2018, 09:59 |
slackebot |
<neon1024> |
# |
Oct 3rd 2018, 09:59 |
birdy247 |
lol, I mean response code |
# |
Oct 3rd 2018, 09:59 |
neon1024 |
PHP! |
# |
Oct 3rd 2018, 09:59 |
birdy247 |
What code did you use? |
# |
Oct 3rd 2018, 09:58 |
birdy247 |
People link to us and share on FB, we cant control the pages that are share |
# |
Oct 3rd 2018, 09:51 |
neon1024 |
Even if you return a 301 your browser will cache it in most cases and redirect appropriately without the extra request afaik |
# |
Oct 3rd 2018, 09:50 |
neon1024 |
Don’t link your Facebook pages to 300s? |
# |
Oct 3rd 2018, 09:50 |
neon1024 |
I don’t see how it would though |
# |
Oct 3rd 2018, 09:49 |
neon1024 |
@birdy247 We honestly don’t really know, our SEO guy left |
# |
Oct 3rd 2018, 09:42 |
popperz0r |
thanks @edgaras.jan :) |
# |
Oct 3rd 2018, 09:42 |
edgaras.jan |
@popperz0r Plugin in BETA version and has no tagged version. You need add `@dev` to `composer require dereuromark/cakephp-translate@dev` |
# |
Oct 3rd 2018, 09:41 |
azmain.nishan |
@neon1024 I am sending authentication with my GET request in ajax call.. didn't understand how can i send Auth with the OPTIONS request. |
# |
Oct 3rd 2018, 09:38 |
glafarge |
Hello. Is it possible to find message key from a translated string using I18n/Aura ? |
# |
Oct 3rd 2018, 09:38 |
birdy247 |
Will this harm SEO? I notice FB wont link to pages where it spots a redirect for example |
# |
Oct 3rd 2018, 09:38 |
birdy247 |
@neon1024 And then have a mapping there? |
# |
Oct 3rd 2018, 09:35 |
popperz0r |
is this package still active? |
# |
Oct 3rd 2018, 09:35 |
popperz0r |
@dereuromark im having this error <code> Could not find package dereuromark/cakephp-translate at any version for your minimum-stability (stable) . Check the package spelling or your minimum-stability</code> |
# |
Oct 3rd 2018, 09:34 |
popperz0r |
Hello! |
# |
Oct 3rd 2018, 09:31 |
neon1024 |
Worked well for us |
# |
Oct 3rd 2018, 09:31 |
neon1024 |
Use a custom ErrorHandlerMiddleware which catches 404's and redirects them |
# |
Oct 3rd 2018, 09:30 |
birdy247 |
Trying to come up with a bullet proof method of preserving SEO ranks and not breaking any inbound links |
# |
Oct 3rd 2018, 09:29 |
birdy247 |
We are revamping one of our sites. The URL structure is totally changing but we have alot of inbound links |
# |
Oct 3rd 2018, 09:29 |
neon1024 |
If you are not sending Auth with the OPTIONS request presumably |
# |
Oct 3rd 2018, 09:29 |
birdy247 |
Morning guys |
# |
Oct 3rd 2018, 09:29 |
neon1024 |
Well yeah, 401 |
# |
Oct 3rd 2018, 09:18 |
slackebot |
<azmain.nishan> |
# |
Oct 3rd 2018, 09:17 |
Dj_DexterKu |
okay, turns out mount doesn't know what ~ is |