#563 closed defect (fixed)
URL generation fails for short URL and RSS
Reported by: | roel | Owned by: | lsyroka |
---|---|---|---|
Priority: | normal | Milestone: | v0.97.0 |
Component: | General | Version: | 0.97.0 |
Keywords: | Cc: |
Description
Short URLs (created in General conference settings) do not work, nor do links generated by the RSS module.
Firstly, neither the RSS module nor short URL creator append a slash to the BaseURL provided in indico.conf, while links generated elsewhere on the site do. E.g. having a BaseURL of "http://conferences.dtu.dk", the RSS page http://conferences.dtu.dk/categoryDisplay.py/rss?categId=0 generates links like:
<guid>http://conferences.dtu.dkevent/69</guid>
However, compensating for the missing slash, the URL http://conferences.dtu.dk/event/69 still gets a 404.
The same holds for http://conferences.dtu.dk/conferenceDisplay.py?confId=13 which is supposed to have a short URL http://conferences.dtu.dk/event/foobar .
Our server is VirtualHosted? so that DocumentRoot?=/opt/indico/htdocs.
Change History (9)
comment:1 Changed 5 years ago by jbenito
- Milestone set to v0.97
- Version set to 0.97
comment:2 Changed 5 years ago by makub
comment:3 Changed 5 years ago by pferreir
The short URLs do not work, because Apache configuration maps /indico to directory /opt/indico/htdocs
and /indico/events does not map to any file or handler.
Well, that is because we assume that this is done at the Apache level. We should definitely add this to the docs (whoever closes the ticket, please check it).
With v0.98 this is not a problem, as our WSGI handler takes care of this automatically.
comment:4 Changed 5 years ago by makub
The default value for ShortEventTag? in indico.conf should be changed in the Indico source.
The Apache config for URL redirection is :
# with mod_rewrite RewriteEngine On RewriteRule ^/indico/event/(.*)$ /indico/conferenceDisplay.py?confId=$1 [R=permanent,L] RewriteRule ^/indico/categ/(.*)$ /indico/categoryDisplay.py?categId=$1 [R=permanent,L]
or
# without mod_rewrite RedirectMatch permanent ^/indico/event/(.*)$ /indico/conferenceDisplay.py?confId=$1 RedirectMatch permanent ^/indico/categ/(.*)$ /indico/categoryDisplay.py?categId=$1
comment:5 Changed 5 years ago by pferreir
- Owner set to lsyroka
- Status changed from new to assigned
comment:6 Changed 5 years ago by lsyroka
Wiki updated
comment:7 Changed 5 years ago by lsyroka
- Status changed from assigned to in_merge
comment:8 Changed 5 years ago by Leszek Syroka <leszek.marek.syroka@…>
- Resolution set to fixed
- Status changed from in_merge to closed
The missing slash can be added in indico.conf by changing the default
to
The short URLs do not work, because Apache configuration maps /indico to directory /opt/indico/htdocs
and /indico/events does not map to any file or handler.