Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: How to avoid landing page redirects?

Status Resolved
Add-on / Version Publisher 2.6.4
Severity
EE Version 3.5.11

Matthias Ballmann

Sep 19, 2017


hi brian,

we are near finalizing our new website and ran into problems with various seo-and performance-tools (https://gtmetrix.com for instance) reminding us to avoid unnecessary landing page redirects.

we get these errors…

http://XXXX.ballmannweber.de/
http://XXXX.ballmannweber.de/de
http://XXXX.ballmannweber.de/

… which means that there is some (short) redirect to .de/de somewhere but we cannot figure out where and why.

Our website uses german as the primary language and english as a secondary language.
Attached you can see a screenshot of our settings of publisher regarding the URL Translations.

I tried several different settings but NOT adding the prefix to the homepage results in not working language switch on most other pages.

any ideas why there is this redirect and how we can avoid this?
thank you very much,
matthias

 

 

 

#1

BoldMinded (Brian)

What do you have your Redirect Type setting set to? If its 301 then it shouldn’t have an issue with SEO.

See: http://d.pr/i/lfwkzT

#2

Matthias Ballmann

yes, we have the settings set like this. but: every one of the seo-checking-tools we use reminds of getting rid of these redirects.

can you say why this redirect is happening? I remember that we had a similar issue on our current website and we emailed about that few years ago and fiddled around with the settings until the error was gone. but the new publisher’s settings are different.

#3

BoldMinded (Brian)

Comment has been marked private.

#4

Matthias Ballmann

but if I send someone to the german-version of your website, it makes this redirect to .de/de. so this is necessary by the publisher-plugin right?

if I use the same preferences as in publlsher 1 for ee2.x the website behaves differently. but I will check if this has something to do with the code we use for the switcher.

#5

BoldMinded (Brian)

Comment has been marked private.

#6

Matthias Ballmann

we want no prefix on the german pages, including the homepage. the prefix should only be visible on all english pages, including the homepage.

#7

BoldMinded (Brian)

Right, then you’ll want to disable the prefix for the default language. There is a setting in the URL Translations section to do that.

#8

Matthias Ballmann

ok, we used this setting before but if we say yes to…

– add url prefix – add url prefix to homepage – hide prefix for default language

we get the redirects even for the default language. I completely understand why there is a redirect for all other languages but I don’t understand why there is one for the default language if the prefix is hidden for this.

as I wrote in #4 we have d this redirect-free site-behaviour on our current but we cannot replicate it with our new website and publisher 2.

don’t get me wrong: I love your work and this plugin as I can see that you take great effort in integrating it seemless into the ee backend. I just want to understand what we can do (with a custom switcher for instance) to get it completely seo-neutral an perfect. our clients here in germany are VERY seo-sensitive so it’s critical for us that our own website produces no seo-reminders in the checker tools.

regards, matthias

#9

BoldMinded (Brian)

Comment has been marked private.

#10

BoldMinded (Brian)

Comment has been marked private.

#11

Matthias Ballmann

Comment has been marked private.

#12

Matthias Ballmann

Comment has been marked private.

#13

BoldMinded (Brian)

{page_url}

is only a variable that is created if you’re using Pages or Structure, and it should contain the full url, so you don’t need to add projekte/url_title after it. Did you mean to add

{site_url}

instead?

I tried to replicate the redirect issue on demo.boldminded.com, and its not behaving correctly when I have the “Hide the prefix for default language” option set to “Yes”, so that may be part of the issue you’re experiencing?

#14

Matthias Ballmann

thank you for your fast reply! I used page_url because the docs said so (http://docs.boldminded.com/publisher/template-tags) and I understood this the wrong way. maybe you can add the hint to pages or structure to the docs?

I will try using {site_url} in a second and see how it works.

yes, “hide for default” seems to behave not normal. I bet it’s at least part of the problem.

I check now with the other tag. thank you!

#15

BoldMinded (Brian)

I’m very busy right now trying to get ready for the conference, so I may not be able to dig into the hide for default setting for a week or two.

#16

BoldMinded (Brian)

When I made my previous comment about seeing something weird, I only saw it once. I can’t replicate it in demo.boldminded.com or my local dev environment at all anymore.

#17

Matthias Ballmann

hi brian,

ok, to be sure: are we talking about the redirect-issue right now? the one I uploaded the screenshot from the sitechecker for which shows this automatic redirect from…

“.de” to “.de/de” and back to “.de”

when I visit our homepage?

#18

BoldMinded (Brian)

Yes that is what I can’t replicate anymore. Do you have a dev environment this is happening on consistently that I can login to and debug?

#19

Matthias Ballmann

Comment has been marked private.

#20

BoldMinded (Brian)

Matthias, when I disable the get language from browser option it does not redirect

https://www.dropbox.com/s/60wshg6tw1ecr65/Screenshot 2017-10-09 10.45.54.png?dl=0

#21

Matthias Ballmann

ha, that’s a thing – you are right! well, since I don’t really need to use this browser-default option, I am absolutely fine with this solution.

thank you very much for your help and support! kind regards, matthias

Login to reply