Incomplete canonical tag on detail pages with tx_news 8 and latest TYPO3 9 - typo3

I have a pretty normal route enhancer, with adds speaking url path segment to news detail url.
On the detail page in the generated canonical links the added path segment is missing.
I thought I have a bug in my route enhancer, disabled it, and tested with the unaltered news-links, with the same effect, now the url parameters are missing.
Apparently there is something in my configuration, as this problem does not appear anywhere else.
If someone could give me a hint where to look or what it could be, I would be very grateful.
Thanx in advance!

Related

Page pagination issue in Drupal website

I have an issue in drupal website ( http://www.perfectchoice.ae/properties-browse/ ) when I go to click on 2nd page number then no property comes there.
I don't have knowledge about Drupal. Looking for someone to help me please.
Page parameter is working:
http://www.perfectchoice.ae/properties-browse/?page=3
So some other is causing the problem. When you move to some page and it doesn't show anything try removing URL parameters one by one until you figure out which one is causing the problem. But in any case you will need some Drupal knowledge to solve this.
With the very less information provided in the description, it is difficult to figure out the issue/fix.
One probable reason would be your views is not getting displayed on the URLs other than 'properties-browse'. You need to make the visibility settings of the main block to 'properties-browse*'
Good Luck!!!

modx replacing article link with a link of categories

I've got a staging and live site I'm working on (not my code base). I've accidentally replaced the live server with some staging code (no backup (slap me)) and I'm getting weird urls for articles on the sites 'blog' page.
Basically everything's being called into the page correctly but the page header link is being screwed.
Rather than being
http://www.example.com/a-nice-url
it's giving me
http://www.example.com/news,recent,pr,etc
which appears to be the list of categories of the article.
Where/How can I easily fix this?
I'm only calling [[*content]] and can't find where that is.
Linking to an article I know is there with the correct url works still.
any ideas would be greatly appreciated.
I assume your blog page has some sort of listing somewhere, maybe a getResources call? If you can't find it in your blog list template (as you're saying you only see a *content), it means the list is probably "hardcoded" in the blog list resource content field.
You'll want to find the chunks being used to output each blog entry on the lists and check which page parameter is used to construct the link. It should probably be *alias, and if it is and your aliases are correct you have some deeper trouble going on.

Top section of page is not visible while hints are off

I am very new to magento and have developed theme.
When I try to use my theme I am unable to see header.phtml, head.phtml etc in my page.
In page source I am seeing all stuff but thats not visible on page.
When hints are on I am seeing all stuff correctly with hints.
Please help me out.
This is my URL..
http://216.12.194.46/~kartscom/kartsftp/magento/index.php/computer/sony.html
Regards,
Suraj.
It appears that your header-container (and possibly header) does not close itself correctly.
I suggest checking the file /app/design/frontend/my_company/default/template/page/html/header.phtml to make sure each div closes itself.
By enabling hints, the hint boxes (which are made by div tags) end up closing the containers, which is why it shows correctly with it on, except for the fact that the box labeled as "frontend/my_company/default/template/page/html/header.phtml" (Mage_Page_Block_Html_Header) in your hints extends all the way down the page.
The "header-container" div needs to close before the "main-container col2-right-layout" div. To help deduce any other errors, I suggest starting off by turning hints off and running your page through the W3C Html Validator, and trying to correct as many issues as possible.
The validator tool will definitely help in tracking down any tags that aren't being closed, plus I always strive to have pages that pass with 0 errors / 0 warnings.

Duplicate URLs in Zend

I am developing a ZF website: howtowritecitations (dot) com
and it has a TOS page:
howtowritecitations (dot) com/termsofservice
But what are these duplicate pages?
http://www.howtowritecitations.com/termsofservice/index
http://www.howtowritecitations.com/index.php/termsofservice
http://www.howtowritecitations.com/index.php/index/termsofservice
Where did they come from? Will this be a problem? I hope not. For example, when Google crawls the page, it will only find and index howtowritecitations (dot) com/termsofservice, right?
If it is a potential problem, show me in the right direction so I can try and solve it.
Someone suggested to start looking at getRequestUri() in routeShutdown() (or something similar)
to use preg_replace to remove index.php, in order to 301-redirect to the proper URL, but I lost here.
Thanks in advance for advice or comments
This is caused by the routes you have setup. By default, Zend Framework applications usually route like:
www.yoursite.com/:controller/:action/:param
Right now, your termsofservice controller located at www.yoursite.com/termsofservice when called will show the :index action by default when no action is specified without changing the URL. It is also perfectly valid to access it using www.yoursite.com/termsofservice/index.
In order to fix these, you need to setup custom routes where everything that matches www.yoursite.com/:controller/* will route to www.yoursite.com/:controller. That way Google will never get a chance to see an alternate URL to index.

TYPO3 does not resolve url correctly

I'm pretty new to TYPO3 and currently stuck with the following issue:
I copied the templates from another webpage that is currently in business.
When I'm on the startpage of my homepage (www.domain.com) and click on one of the links it contains I always get an error 404. The link that is generated looks like this.
http://www.domain.com/testpage.440.0.html
So I guess something like RealUrl was in use on the webpage that I copied from? Do I understand this right? I don't see that RealUrl is installed though.
However If i manually change this link to
http://www.domain.com/?id=440.0.html
the site is being created.
How does Typo3 know to generate a page when it receives the first version of these two links?
Does not really look like a standard out-of-the-box REAL URL url. That would rather have been /testpage-404.html . So maybe the problem is somewhere else, could be:
simulate static (check if that extension is running). A common mistake is to run real url an simulate static at the same time. If you do not need speaking urls for the moment, just uninstall simulate static.
make sure you add a domain to your shortcut. Use the the list modul and select the root shortcut. Then click create new record, select domain. and enter your domain there. Flush all the caches and try again.
If you'd post your TS Code (of the root shortcut page) here, I could probably tell what's going wrong.
real url configuration typically use .htaccess files.. maybe that file still contains information from the original destination.
check if the root ts contains some baseUrl statement
Which version of TYPO3 are you using?
HTH, but feel free to post more infos.
If your typoscript template is expecting to find realurl and its not installed as a plugin, that could be the cause. You'll need to either install it, or find the settings in the TS template and remove them.
Try the template object browser to look for it (use the template tool, click to the site root, then use the drop down menu in the r/h pane to choose the Template Obect Browser.)
How does Typo3 know to generate a page when
it receives the first version of these two links?
Any page request that it doesn't understand will give a 404 error.