-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove .html
from internal URL() links.
#846
Comments
The menu is also a good target, e.g: Lines 33 to 40 in fa65779
You could probably sort most of them with a regex find-replace. |
I notice this also has the following. Presumably we should just remove anything below line 69? We don't use a developer menu, even in management mode.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@davidebbo pointed out a problem with accessing URLs using https://www.onezoom.org/life.html, instead of just https://www.onezoom.org/life (no extension): #843.
The search bug is now fixed but he also (very reasonably) said:
We need to take a little care, because web2py can add e.g. a
.load
ending to{{=URL('default','life')}}
if the view is itself access from a.load
page (see http://web2py.com/books/default/chapter/29/04#Dispatching). Therefore I suggest, if we really mean the URL to be to a .html file, but don't want the extension to appear in the link, that we use{{=URL('default','life',extension=False)}}
Since there is no
life.load
file inviews/treeviewer
(which is where default/life is redirected to in the controller), then we can quite reasonably do this for all instances oflife.html
, I think. These are the relevant files:The text was updated successfully, but these errors were encountered: