Canonical URL remains when navigating between pages

Open
#3,648 4 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@davwheat is already working on this.

Since Sep 20, 2022.

Assessment

This issue has not been assessed yet.

Description

type/bug
Current Behavior

When navigating through the SPA, the canonical found in the page <head> remains.

E.g., if you visit the forum home page, then navigate to a discussion, the canonical is still the home page URL.

Steps to Reproduce

Self-explanatory

Expected Behavior

Canonical should be updated with a new URL

Screenshots

No response

Environment
  • Flarum version: 1.5.0
  • Website URL: [local]
  • PHP version: 8.1.x
Output of php flarum info

No response

Possible Solution

No response

Additional Context

No response

Dominant language
PHP
Stars
6.8k
Forks
891
Avg merge
1d 10h
Merged PRs (30d)
209

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flarum/framework

All issues in flarum/framework

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.