Bug Report
Current Behavior
A clear and concise description of the behavior.
Steps to Reproduce
- Go to https://community.giffgaff.com
- View source
- Notice the canonical url is set correctly
- Go to https://community.giffgaff.com/all
- View source
- Notice the canonical url has picked up the internal kubernetes hostname
Expected Behavior
The correct url is present in the canonical parameter
Environment
Possible Solution
The issue lies in two files:
https://github.com/flarum/core/blob/ba9665e9db0723af79aa5f381ecabb85b2b1ebcd/src/Forum/Content/Index.php#L88
https://github.com/flarum/tags/blob/f85cc591021f32627be32f0be9f49c3a0b0eb71f/src/Content/Tags.php#L97
Instead of retrieving the hostname from the request $request->getUri()->withQuery(''), something like $this->url->to('forum')->base() . $request->getUri()->getPath()
PR incoming shortly!
Bug Report
Current Behavior
A clear and concise description of the behavior.
Steps to Reproduce
Expected Behavior
The correct url is present in the canonical parameter
Environment
dev-masterPossible Solution
The issue lies in two files:
https://github.com/flarum/core/blob/ba9665e9db0723af79aa5f381ecabb85b2b1ebcd/src/Forum/Content/Index.php#L88
https://github.com/flarum/tags/blob/f85cc591021f32627be32f0be9f49c3a0b0eb71f/src/Content/Tags.php#L97
Instead of retrieving the hostname from the request
$request->getUri()->withQuery(''), something like$this->url->to('forum')->base() . $request->getUri()->getPath()PR incoming shortly!