Skip to content

Conversation

@queenvictoria
Copy link

I've found it difficult to navigate the router history while testing a site as every page is titled "Pages CMS".

I've had a stab at creating more meaningful page titles. I've had to disable the page title for the collection/[name] route as it prevented navigation to child routes. And I've not loaded content to get the correct title opting instead for the last fragment of the path. Regardless--I now find this makes navigating back through the history more usable.

@ryangittings ryangittings requested a review from hunvreus April 8, 2025 08:57
@hunvreus
Copy link
Member

I've had a quick look, I think I can give it a try later on this week when I prepare the new release. I may reimplement myself as there's been a fair amount of changes to the codebase in the past 2 weeks.

@hunvreus
Copy link
Member

@queenvictoria Much appreciated. Could you rework this PR to be against the development branch? I don't work against main directly.

https://github.com/pages-cms/pages-cms/blob/main/CONTRIBUTING.md

@queenvictoria queenvictoria changed the base branch from main to development May 18, 2025 19:31
@queenvictoria queenvictoria force-pushed the feature/head-titles branch from fe461f4 to 1ffefc8 Compare May 18, 2025 19:39
@queenvictoria
Copy link
Author

That's updated thanks @hunvreus . Please note: the first file has been disabled as it causes a router error. I'm not sure why but perhaps you can look:
https://github.com/pages-cms/pages-cms/pull/227/files#diff-d6fceb6b2aff384198ff3a4cdcee3948cce4cd0577ec840dab862a32d785e511R2-R4

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

Successfully merging this pull request may close these issues.

2 participants