"config.absRefPrefix = /" breaks mm_forum links
Hi if I use
config.absRefPrefix = / most of the mm_forum links are broken.
The links are double slashed.
Eg. the new topic link looks with
config.absRefPrefix = / like this:
#1 Updated by Ines Willenbrock over 7 years ago
- Status changed from New to Needs Feedback
- Priority changed from Must have to -- undefined --
I'm sure, that double / is not that big of a problem, but out of curiosity, why do you configure config.absRefPrefix that way? As far as I know, it's to build absolute and not relative links with TYPO3.
As it's what TYPO3 prepends to the relative links, that seems absolutely normal, that the links are build this way.
regards - Ines
#2 Updated by Ines Willenbrock about 7 years ago
- Status changed from Needs Feedback to Under Review
With the introduction-package 4.7.2 I've been able to confirm that bug.
With configured config.absRefPrefix=someDir/ that "someDir" part will be 2 times in the links - which rightfully returns a 404 error with that package.
To reproduce: just set up intropackage-4.7.2 with default values, install mm_forum and then try to write a new topic. If new posts are affected as well I didn't check.
With an empty value for config.absRefPrefix the intropackage works just fine.
regards - Ines
#4 Updated by Alexander Stehlik over 4 years ago
this indeed a problem.
First of all: a duplicate slash is a problem - at least in modern browsers ;) - because it will be interpreted as a protocol-relative URL:
Second: the reason why someone might use a slash / for absRefPrefix is quite well explained in the article of Søren Malling:
Third: the attached patch should solve the issue :)