how to change the redirect after user upload

Phoca Download - download manager
sosuke
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Jan 2010, 02:37

how to change the redirect after user upload

Post by sosuke »

if the user uploads in the frontend, the page redirects to a url that doesn't exist on my site. (probably because i'm using sef urls) either way, how do i adjust the page that phoca redirects to after user upload in the frontend? thank you very much.
odin568
Phoca Member
Phoca Member
Posts: 13
Joined: 15 Dec 2009, 19:27

Re: how to change the redirect after user upload

Post by odin568 »

i have the same problem, i get a 404 page after user upload.

how to fix that?
sosuke
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Jan 2010, 02:37

Re: how to change the redirect after user upload

Post by sosuke »

for me, i went to /components/com_phocadownload/user/view.html.php then at line 187 i changed "false" to "true" to redirect back to the user's upload page. ie.

Code: Select all

$mainframe->redirect(JRoute::_($link, true),
but it is not working for me :(. in fact, for some reason i am being redirected to the homepage (with the user upload in a top position) whenever i select the category in the dropdown. :(
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49014
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to change the redirect after user upload

Post by Jan »

Hi, I will take a look at it (this should be fixed one month ago, but I need first to answer all the posts in the forum :-( )

Jan
If you find Phoca extensions useful, please support the project
sosuke
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Jan 2010, 02:37

Re: how to change the redirect after user upload

Post by sosuke »

thank you for taking a look at this problem. if you have any trouble replicating the problem, i would be more than happy to give you access to my site so you can see what it is doing first hand.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49014
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to change the redirect after user upload

Post by Jan »

Hi, it is known issue, I know the problem, I only need time to fix it and release it in new version. :(

Jan
If you find Phoca extensions useful, please support the project
Post Reply