Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad absolute path when not in a domain root #67

Closed
dakur opened this issue May 3, 2017 · 2 comments
Closed

Bad absolute path when not in a domain root #67

dakur opened this issue May 3, 2017 · 2 comments

Comments

@dakur
Copy link

dakur commented May 3, 2017

When I set up in config:

console:
    url: http://domain.tld/path

and then use Nette\Application\LinkGenerator or Nextras\Application\LinkFactory in a command:

$this->linkFactory->link('Presenter:method', ['code' => $code]);

it returns me http://domain.tld/ABCDEF instead of http://domain.tld/path/ABCDEF.

@dakur
Copy link
Author

dakur commented May 3, 2017

I forgot the version numbers:

  • nette/application: 2.3.13
  • kdyby/console: 2.6.1
  • PHP 5.5.9

@fprochazka
Copy link
Member

Hi, thanks for reporting this. Tbh, I don't think the extension should try to autodetect this. But I'll add a configuration option for it.

fprochazka added a commit that referenced this issue May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants