Verification errors from the link to exit the Google App Engine

I am making a webpage using the Google App Engine. I check my pages and find that the exit link that is generated when api users are called (in python) users.create_logout_url(request.uri)is not checked as XHTML 1.0 Strict. The href in the anchor tag is as follows:
/ _ah / Login continue = HTTP% 3A // local% 3A8080 / &? Action = Exit
Enabling a link to this anchor text causes three different validation errors:

* general entity "action" is not defined and is not a default object
* reference to the entity "action" for which a system identifier cannot be created
* EntityRef: expected ';'

Here is a dummy page with an anchor tag if you want to try it on the w3c validator. Dummy Page .

The exit link does not work, but you can see how the page is valid without it, but the actual text inside the href tag violates the check.

Any thoughts on what's going on? Thank!

+3
source share
1 answer

This is a problem with dev_appserver. &up actionto be shielded to% 26.

However, this problem does not occur in production.

The output URL looks like this, and that is perfectly true.

"http://xxxxxx.appspot.com/_ah/logout?continue=https://www.google.com/accounts/Logout%3Fcontinue%3Dhttp://xxxxxx.appspot.com/%26service%3Dah"
+3
source

Source: https://habr.com/ru/post/1743935/


All Articles