Re: Login & parameter in URL

Serge Huber <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <[email protected]>
sylvie donatien wrote:

>Hi everyone,
>
>   I've changed the file workflow_mailnotif.jsp in
>order to modify the URL that is sent to users after
>the publication of their documents. The URL is now of
>this type : 
>http://localhost:8080/jahia/Jahia/pid/1?pageID=55
>   It is so that the users can go on the homepage and
>then see their published document (ID=55) in a popup.
>So, in the homepage code, I get the parameter "pageID"
>and I open a window with the document URL...
>   It works perfectly if you're logged already. BUT if
>you're not, you get an error 403. Then you log in, and
>you discover that the parameter in the URL has
>disappeared!!! 
>   So my question would be : what happened to the
>parameter? When does Jahia put it off from the URL? I
>checked the files login.jsp, engine.jsp and I did some
>System.out but in vain... Why does the parameter go
>away?
>  
>
Jahia uses Javascript to reload the page when the login popup is closed. 
Basically you would have to change the link that opens the popup to 
include your extra parameter, and then make sure the Javascript code 
also adds the extra parameter when reloading the page below.

If I remember correctly the error page is in :

src/views/jsp/jahia/errors/error_403.jsp

and the Javascript would be in

src/views/jsp/jahia/errors/error_include.js

Regards,
Serge Huber.

>Thanks for your suggestions!
>-Sylvie
>
>
>	
>
>	
>		
>Vous manquez d’espace pour stocker vos mails ? 
>Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
>Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
>
>Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.