Giter Club home page Giter Club logo

Comments (6)

tbaddade avatar tbaddade commented on June 4, 2024

Welche Config hast du genau angelegt und welche Urls werden generiert. Ggf. auch gern einmal die Cache Datei pathlist.php unter redaxo/cache/addons/url/ senden.

from redaxo_url.

NGWNGW avatar NGWNGW commented on June 4, 2024

Hi,

guter Hinweis mit der pathlist.php

Die Pathliste wird nur für Domains ohne Portangabe erstellt. Siehe /url/lib/Url/Rewriter/Generator.php Zeile 263:

self::$paths[$url->getDomain()][$articleId][$entry['id']][$articleClangId] = $object;

from redaxo_url.

tbaddade avatar tbaddade commented on June 4, 2024

Das meine ich nicht. Ich meine einerseits deine Config, also was du im AddOn eingestellt hast und was tatsächlich in der generierten pathlist steht.

from redaxo_url.

NGWNGW avatar NGWNGW commented on June 4, 2024

Ja, das war mir klar. Ich dachte nur ich erspare dir die Suche ;) $url->getDomain() gibt den Port eben nicht mit aus...

Hier die Infos:

pathlist.php
{"localpage.dev":{"5":{"1":{"1":{"url":"\/referenzen\/details\/item1\/","fullUrl":"http:\/\/localpage.dev:8888\/referenzen\/details\/item1\/","pathNames":[],"fullPathNames":[],"urlParamKey":"","sitemap":false,"seoTitle":"","seoDescription":""}},"2":{"1":{"url":"\/referenzen\/details\/item2\/","fullUrl":"http:\/\/localpage.dev:8888\/referenzen\/details\/item2\/","pathNames":[],"fullPathNames":[],"urlParamKey":"","sitemap":false,"seoTitle":"","seoDescription":""}},...

core/config.yml
server: 'http://localpage.dev:8888/'

Addon-Config
bildschirmfoto 2016-07-05 um 20 02 13

Temporärer Fix für mich...
self::$paths[$url->getDomain()][$articleId][$entry['id']][$articleClangId] = $object;
in
self::$paths[$_SERVER['HTTP_HOST']][$articleId][$entry['id']][$articleClangId] = $object;
umändern...

from redaxo_url.

tbaddade avatar tbaddade commented on June 4, 2024

Da ich kein Mamp habe kann ich das nicht wirklich testen.

Kannst du mal vor dieser Zeile folgendes eintragen
https://github.com/tbaddade/redaxo_url/blob/master/lib/Url/Generator.php#L280

echo '<pre>' . $currentUrl->getDomain() . ' == ' . $domain . '</pre>';

Und das Ergebnis hier notieren.

from redaxo_url.

NGWNGW avatar NGWNGW commented on June 4, 2024

Ein Update auf die aktuelle Beta2 hat das Problem nun behoben.

from redaxo_url.

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.