News Module $return_url not working with internal pretty urls

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
alzambo
Forum Members
Forum Members
Posts: 26
Joined: Tue Jun 23, 2009 7:02 pm

News Module $return_url not working with internal pretty urls

Post by alzambo »

Hi to everybody,

I've discovered that if you use the 'internal' pretty urls setup in config, the $return_url link doesn't work properly.

Is this a known bug?
Alex

CMS version: 1.6
News module version: 2.10
Last edited by alzambo on Mon Nov 09, 2009 11:04 am, edited 1 time in total.
alzambo
Forum Members
Forum Members
Posts: 26
Joined: Tue Jun 23, 2009 7:02 pm

Re: News Module $return_url not working with internal pretty urls

Post by alzambo »

...nobody?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News Module $return_url not working with internal pretty urls

Post by Rolf »

Hi Alzambo,
Is this a known bug?
CMS version: 1.6
Have you tried upgrading to 1.6.6?
If this was a bug in 1.6, it is probably solved by now.

Regards, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
alzambo
Forum Members
Forum Members
Posts: 26
Joined: Tue Jun 23, 2009 7:02 pm

Re: News Module $return_url not working with internal pretty urls

Post by alzambo »

Hi Rolf,

i've just updated to 1.6.6 and the problem remains: with internals pretty urls, the backlink on the detail page links to the detailpage itself.

Thank you Rolf,
Alex
alzambo
Forum Members
Forum Members
Posts: 26
Joined: Tue Jun 23, 2009 7:02 pm

Re: News Module $return_url not working with internal pretty urls

Post by alzambo »

up
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News Module $return_url not working with internal pretty urls

Post by Rolf »

Have you tried using 'mod_rewrite' yet?

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
alzambo
Forum Members
Forum Members
Posts: 26
Joined: Tue Jun 23, 2009 7:02 pm

Re: News Module $return_url not working with internal pretty urls

Post by alzambo »

Rolf wrote: Have you tried using 'mod_rewrite' yet?

Rolf
Hi Rolf!

I've just tried... no way..

I tried to assign the return link to a variable and then recall it inside the detailpage, but the variable seems to be empty when I'm in detailpage.
Are the assigned variables with {capture} resetted on page-change?

Alex
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News Module $return_url not working with internal pretty urls

Post by Rolf »

Hmm.  :-\

Or use plain javascript:

Code: Select all

<a href="javascript:history.go(-1)">[Return]</a> 

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
alzambo
Forum Members
Forum Members
Posts: 26
Joined: Tue Jun 23, 2009 7:02 pm

Re: News Module $return_url not working with internal pretty urls

Post by alzambo »

Rolf wrote: Hmm.  :-\

Or use plain javascript:

Code: Select all

<a href="javascript:history.go(-1)">[Return]</a> 

Rolf
:-\ I'm trying to avoid js because, if disable, the return link will not work.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News Module $return_url not working with internal pretty urls

Post by Rolf »

Understandable...

When you put {get_template_vars} in your detail content, you can see all used parameters, perhaps it will be of any help...

You have your site local, possibly the return link will work when the site is online... Mixed up with another post  :P

Greetz Rolf
Last edited by Rolf on Thu Nov 12, 2009 12:33 pm, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “[locked] Installation, Setup and Upgrade”