Ask Your Question
1

Missing link URL on 404 page

asked 2012-05-04 10:45:02 -0600

todofixthis gravatar image

updated 2012-05-04 10:46:04 -0600

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-05-04 11:33:08 -0600

zaf gravatar image

updated 2012-05-04 11:47:16 -0600

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!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-05-04 10:45:02 -0600

Seen: 1,084 times

Last updated: May 04 '12