Code Monkey home page Code Monkey logo

Comments (6)

Simz avatar Simz commented on August 15, 2024 1

Did you try my fix ?

from my_redirects.

foobar13372 avatar foobar13372 commented on August 15, 2024

Is #68 related?

from my_redirects.

witrin avatar witrin commented on August 15, 2024

Same problem here. It does not seems to work in a multi-site setup. Using TYPO3 8.7.19 and My Redirects 3.4.1.

from my_redirects.

djangones avatar djangones commented on August 15, 2024

@Simz, your fix worked for me! Thanks!

from my_redirects.

konnisoelch avatar konnisoelch commented on August 15, 2024

Hi guys,
i wonder why you use the RealUrl Config for that problem.

I would rather use the records in sys_domain since, they are always present in a multidomain system.

/**
     * Generate link based on current page information
     *
     * @param string $link
     * @return string
     * @todo future; refactor for TYPO3 9.x support
     */
    protected function generateLink($link)
    {
        try {
            $queryBuilder = $this->getQueryBuilderForTable('sys_domain');
            $statement = $queryBuilder->select('pid')->from('sys_domain')->where($queryBuilder->expr()->eq('domainName', $queryBuilder->createNamedParameter(GeneralUtility::getIndpEnv('HTTP_HOST'))))->execute();

            $rootPageId = ConfigurationUtility::getDefaultRootPageId($link);

            while ($row = $statement->fetch()) {
                $rootPageId = $row['pid'];
            }

            EidUtility::initializeTypoScriptFrontendController($rootPageId);
            list($url, $hash) = explode('#', $link, 2);
            // Remove hashbang and append at the end
            $_link = $this->getContentObjectRenderer()->typoLink_URL(
                ['parameter' => $url]
            );
            $link = $_link . ($hash ? '#' . $hash : '');
        } catch (\Exception $e) {
        }
        return $link;
    }

from my_redirects.

Simz avatar Simz commented on August 15, 2024

from my_redirects.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.