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

URL Suffix is not translatable #360

Open
amphibian opened this issue Jul 11, 2023 · 6 comments
Open

URL Suffix is not translatable #360

amphibian opened this issue Jul 11, 2023 · 6 comments

Comments

@amphibian
Copy link

Describe the bug

On my two-language site, the URL Suffix for a navigation node is not being saved per-site, breaking my anchor links in one site as soon as I change it for the other.

Looking a this FR from 2021, it appears as though this should be working as of 2.0?

Steps to reproduce

  1. Create a navigation enabled for two sites.
  2. Add a node with a URL suffix.

Craft CMS version

4.4.10.1

Plugin version

2.0.19

Multi-site?

Yes

Additional context

No response

@engram-design
Copy link
Member

Looks like that issue trailed off into something unrelated, and this actually hasn't been implemented.

The workaround for the moment is to create navigation nodes for every site. To do this, you need to set the Propagation Method to Only save nodes to the site they were created in, so that a node is specific to every site. Currently, these sorts of settings aren't translatable for nodes.

@martinhellwagner
Copy link

@engram-design

Does this also apply to Custom URLs? It would be great to be able to set the propagation method to "Save nodes to all sites enabled for this navigation", then add a Custom URL link to the first multisite and have it added to all other multisites as well – but with the option to change the title as well as the URL for each site individually after that.

@engram-design
Copy link
Member

It should apply to any node type, when you add a node with the propagation method set correctly. It'll be added across all enabled sites for that navigation, after which you can change the title of the node per-site.

@martinhellwagner
Copy link

But only the title of the node is changeable on a per-site basis, not the URL, right? Is there any possibility to add the per-site translation of the URL as a feature to the plugin?

@engram-design
Copy link
Member

Sorry, I see what you mean. Correct, the URL is not site-specific for custom URLs. It's something I'll consider for sure, but will likely have to be in Craft 5 where there are some content changes that'll make this easier. Otherwise, we would need to create our own content structure to handle site-specific content that isn't built-in to Craft like the title or slug.

@martinhellwagner
Copy link

Got it, thanks!

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

3 participants