1. At the moment, my site is on a URL like http://blah/hdl/....
2. /hdl/search/ displays result. They include a link to the flatpage that
matched:
<a href="{{ page.get_absolute_url }}">
3. This produces HTML like: <a href="/about/">
4. But, the link to the actual page is either
<a href="about/"> or <a href="/hdl/about/">
5. So, I want to preface that with something like:
<a href="{% projectname %}{{ page.get_absolute_url }}">
Is this sensible, or is there some already done method? I suspect I can
override the get_absolute_url method somehow...
\d
and
in the first page it would reference http://server/about but in the
second it would reference http://server/dir/about.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
Is this not a recurring theme in Django? I mean links and whatnot are stock in
trade for web apps and getting around seems to be quite hard if you want to
keep DRY and plugable.
\d
Thanks for the input on this.
\d