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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
todofixthis's avatar
1.3k
todofixthis
asked 12 years ago, updated 12 years ago

Comments

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!

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
zaf's avatar
512
zaf
answered 12 years ago, updated 12 years ago
link

Comments

see more comments