Opened 7 years ago

Closed 7 years ago

#6854 closed (invalid)

flatpages can not be accessed by url tag

Reported by: Bela Hausmann <post@…> Owned by: nobody
Component: Contrib apps Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

There is no way to access a flat page via the url template tag.

E.g.: some like to call their contact page /about/contact/ and some only /contact/. Would be nice if one could only write {% url contact %} in the template and which href is used is defined by the database entry.

Change History (1)

comment:1 Changed 7 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Erm... the {% url %} tag is meant to decouple you from hard-coded URLs, But a flat page is, essentially, a hard-coded URL, so I'm not sure what you'd gain from using it to get the URL of a flat page. Closing invalid because of that.

Note: See TracTickets for help on using tickets.
Back to Top