Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Route canonical_url wildcard support #4466

Closed
cdekok opened this Issue May 13, 2013 · 2 comments

Comments

Projects
None yet
3 participants
Contributor

cdekok commented May 13, 2013

I have a vhost in nginx like:

server {
        server_name *.zend.dev;
        server_name_in_redirect off;

        root /home/www/$host/public;

        include /etc/nginx/includes.d/deny;
        include /etc/nginx/includes.d/nolog;

        access_log /var/log/nginx/access_$host.log;
        error_log /var/log/nginx/error_zend.log;

        location / {
                try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php {
                include /etc/nginx/includes.d/php-fpm_www;
                include /etc/nginx/includes.d/fastcgi_params;
                fastcgi_param PHP_VALUE  "include_path=.";
                fastcgi_param APPLICATION_ENV development;
        }
}

Only when creating a canonical url like:

$this->url()->fromRoute('admin/profile/changePassword', array(), array('force_canonical' => true));

I get a link with the wildcard:
http://*.zend.dev/nl-NL/admin/profile/change-password

Now I am not sure if this is a mistake of the vhost setup or that ZF 2 allows to override this somewhere?

Member

DASPRiD commented Oct 1, 2013

Please verify if the bug is still present in latest ZF2 version.

@GeeH GeeH added the To Be Closed label Mar 5, 2016

GeeH commented Jun 27, 2016

This issue has been closed as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html

@GeeH GeeH closed this Jun 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment