Skip to content

URL not output for future or expired entries #57

Description

@imagehat

When linking to an entry, the {{ entry.linkItField.url }} results in empty output if the chosen entry has a future post date or is expired.

When creating an event listing or archive listing I would think it should still output the entry url.

I was able to get by for now with a hacky twig workaround for now by checking for the related entry's url, but this is really not ideal:

{{ entry.linkItField.entry.getUrl()|default(entry.linkItField.url) }}

Craft 2.6.2952, LinkIt 2.3.4

Thanks for the awesome plugin and all your hard work!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions