Open nabossha opened 7 years ago
Hi,
do you have "redirectOldLinksToNew" enabled? If so, try to disable it.
Jan
Dne 21.12.2016 v 13:58 Nando Bosshart napsal(a):
I encounter a strange behaviour using coolURI 1.1.3 on TYPO3 7.6.x (multiple installations and versions tested):
the Extension cs_seo uses the function "GeneralUtility::getUrl" to load the frontend-page and analyse it's content. when coolURI is active, it logs the following behaviour on devlog. when GeneralUtility::getUrl is called with this url: http://dev.abc.local/index.php?id=103 - the following gets logged:
|SITESCRIPT: /index.php?id=103 Getting domain for 103 Looking for domain on page 103 Looking for domain on page 4 Looking for domain on page 1 Resolved domain: dev.abc.local URL from cache 2: dev.abc.local@downloads/ SITESCRIPT: /dev.abc.local/downloads/ DOMAIN: dev.abc.local |
as you can see, the domain "dev.abc.local" gets suddenly prepended to the URL itself - this behaviour just occurs when called via backend - page requests in the frontend work as expected. the IP of these log-entries are always the server's IP itself, not the IP from the logged-in backend-user. i suspect there may be something going on with redirects/session-variables which may not be present when called with getURL?
I tried tracing the error down in several coolURI functions but had no luck - what may be the cause of this error?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bednee/cooluri/issues/61, or mute the thread https://github.com/notifications/unsubscribe-auth/AGfXgynuquF18ZtA7UcZA_plZHSjWe56ks5rKSJugaJpZM4LS61z.
disabling "redirectOldLinksToNew" solves the problem but i think that's not an ideal solution since there is possibility of duplicate content (but "canonical"-TAG is set so this should be a minor issue). i still don't get it why the domain gets prepended to the URL-path itself
I encounter a strange behaviour using coolURI 1.1.3 on TYPO3 7.6.x (multiple installations and versions tested):
the Extension cs_seo uses the function "GeneralUtility::getUrl" to load the frontend-page and analyse it's content. when coolURI is active, it logs the following behaviour on devlog. when GeneralUtility::getUrl is called with this url: http://dev.abc.local/index.php?id=103 - the following gets logged:
as you can see, the domain "dev.abc.local" gets suddenly prepended to the URL itself - this behaviour just occurs when called via backend - page requests in the frontend work as expected. the IP of these log-entries are always the server's IP itself, not the IP from the logged-in backend-user. i suspect there may be something going on with redirects/session-variables which may not be present when called with getURL?
I tried tracing the error down in several coolURI functions but had no luck - what may be the cause of this error?