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

'get' and 'url' modifiers do not returned localized values #1655

Closed
peda opened this Issue Nov 10, 2017 · 0 comments

Comments

Projects
None yet
3 participants
@peda

peda commented Nov 10, 2017

Expected behaviour

When using the get or the url modifier I would expect the values returned to be from the current local - so I can link to a page with the same locale using {{ page | url }} instead of {{ relate:page }}{{ url }}{{ relate:page }}

Actual behaviour

url and get modifiers do return the variable in the websites primary locale instead of the current locale

Steps to reproduce

  1. {{ page | url }}
  2. {{ page | get:title }}

Server Details

Operating System: Ubuntu 16.04

Web Server: Apache 2

PHP Version: 7.0

Statamic Version: 2.7.2

Updated from an older Statamic or fresh install: updated

List of installed addons: N/A

@peda peda changed the title from `get` and `url` modifiers do not returned localized values to 'get' and 'url' modifiers do not returned localized values Nov 10, 2017

@jasonvarga jasonvarga added the bug label Jan 10, 2018

@jackmcdade jackmcdade added the l10n label Jun 7, 2018

@jackmcdade jackmcdade closed this Nov 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment