Opened 6 years ago

Closed 6 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:


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.

Attachments (0)

Change History (1)

comment:1 Changed 6 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.