[ 
https://issues.apache.org/jira/browse/JSPWIKI-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12693456#action_12693456
 ] 

Dirk Frederickx commented on JSPWIKI-481:
-----------------------------------------


The reason the redirect doesn't work is because there is no "Special Page 
Reference" in the jspwiki.properties for the search page.
Strange enough, there is a special reference for "FindPage".

I changed the jspwiki.properties like this:
Old:
{noformat}
jspwiki.specialPage.CreateGroup = NewGroup.jsp
jspwiki.specialPage.FindPage = Search.jsp
jspwiki.specialPage.Login = Login.jsp
jspwiki.specialPage.NewGroup = NewGroup.jsp
jspwiki.specialPage.UserPreferences = UserPreferences.jsp
{noformat}

New:
{noformat}
jspwiki.specialPage.CreateGroup = NewGroup.jsp
#jspwiki.specialPage.FindPage = Search.jsp
jspwiki.specialPage.Search = Search.jsp
jspwiki.specialPage.Login = Login.jsp
jspwiki.specialPage.NewGroup = NewGroup.jsp
jspwiki.specialPage.UserPreferences = UserPreferences.jsp
jspwiki.specialPage.Workflow = Workflow.jsp
{noformat}

This resolves also [JSPWIKI-383].
Of course, with this change, *real* pages named "Workflow" or "Search" would be 
redirected wrongly.

WDYT ?

dirk

> Wrong redirect from Search page
> -------------------------------
>
>                 Key: JSPWIKI-481
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-481
>             Project: JSPWiki
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Bruno Peeters
>            Priority: Minor
>             Fix For: 2.8.3, 3.0
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> If a user decides to go to UserPrefernces page from the search page, a wrong 
> redirect parameter is put in the URL : 
> http://xxx/UserPreferences.jsp?redirect=Search
> After saving the preferences, the user is taken to a page "Search" resulting 
> in an error message "This page does not exist. Why don't you go and create 
> it? "
> This is probably linked to a previously reported issue : 
> https://issues.apache.org/jira/browse/JSPWIKI-383

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to