First time here? Check out the FAQ!
1

Missing link URL on 404 page

While investigating a 404 error in my GWT account (http://expats.askbot.com/get-tags-by-wildcard/), I noticed that one link on the 404 page goes to... the same page!

Screenshot of web inspector highlighting an anchor tag with an empty href attribute

Here's where the link appears on the page:

Screenshot indicating location of the broken link on the 404 page

todofixthis's avatar
1.3k
todofixthis
asked 2012-05-04 10:45:02 -0500, updated 2012-05-04 10:46:04 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

True, it happens to me also. Until it's commited by the development team, you may want to edit file skins/default/templates/404.jinja.html and instead of (around line 20)

<a href="{{feedback_site_url}}" target="_blank">

put

<a href={% if settings.FEEDBACK_SITE_URL %}
                        "{{settings.FEEDBACK_SITE_URL}}"
                        target="_blank"
                    {% else %}
                        "{% url feedback %}?next={{request.path}}"
                    {% endif %}>

That should work, I just copied it from footer.html. For your changes to take affect you should then run

python setup.py install
python manage.py collectstatic

Cheers!

zaf's avatar
512
zaf
answered 2012-05-04 11:33:08 -0500, updated 2012-05-04 11:47:16 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments