× Here you can get community support related to ReDJ.

Trying to use placeholders - not working

  • lhoffman
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #2880 by lhoffman
I am trying to create a redirect for a From URL that looks like this:

www.mysite.com/bookdetail&ean=9781554077984

I would like to extract the EAN 13 digit number at the end an apply it to the To URL of:

http://{siteurl}/index.php?option=com_mijoshop&route=product/search&search={ean}

I am using the Community version on Joomla 3.3.

As you can see this is not a standard looking query. I tried the query macros but they didn't return any results. In trying to figure this out I tried to put {path} in to see what the value is that I'm working with. It comes back with /index.php which is the path of the the To URL and not the From URL.

How do I make this work?

Thanks.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #2885 by admin
Replied by admin on topic Trying to use placeholders - not working
It's really (really) easy (even with Community versio)n:
From URL: ^/bookdetail
To URL: http://{siteurl}/index.php?option=com_mijoshop&route=product/search&search={queryvar ean}
Request only: true (checked)

Let me know...
Luigi

Please Log in or Create an account to join the conversation.

  • lhoffman
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #2887 by lhoffman
Replied by lhoffman on topic Trying to use placeholders - not working
I actually tried that but the queryvar is empty. Just tried again and resulted in:

/index.php?option=com_mijoshop&route=product/search&search=

My thought is that it's not formed as a query as there is no ? (question mark) in the from URL. So I thought it might be part of the path, but the path returns "/index.php".

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #2892 by admin
Replied by admin on topic Trying to use placeholders - not working
Hi,
you could use {preg_match} to extract pieces of URL, but unfortunately it is available only in the Enterprise version.

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds