• Resolved yuluma

    (@yuluma)


    This is the old link:
    /product/26440/izipizi-leesbril-letmesee-model-e#26443

    I would like to redirect to :
    /winkel/leesbril-letmesee-model-e-6/?attribute_pa_kleur=black&attribute_pa_maat=15

    I’ve solved the problem by deleting all the #12345 (regex: #\d*) and now it works. But don’t know if this is stated as a problem and if it is a known ‘bug’.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author John Godley

    (@johnny5)

    It is impossible to have # in your source URL as this is not sent to the server. This applies to any redirect, not just those performed by Redirection.

    The only way to redirect based on # is in the client using JavaScript.

    https://redirection.me/support/faq/

    Thread Starter yuluma

    (@yuluma)

    Hi John,

    I understand your point. Would’nt it be nice if the redirect plugin would just ignore the # and redirect the url anyway (with skipping the #xxx part)

    Thank you for your answer!

    Plugin Author John Godley

    (@johnny5)

    Redirection does a simple comparison match of the current URL against the saved URL. Additional checks to skip a # would impact the performance of this check.

    Thread Starter yuluma

    (@yuluma)

    Check, thus regex the # part out and your done ??

    have a great day!

    Plugin Author John Godley

    (@johnny5)

    Sure, and regex matches aren’t as performant as plain matches. It’s an awful lot of work and complexity just to avoid not putting a # in your URLs

    Thread Starter yuluma

    (@yuluma)

    Hi John,

    I think you missunderstand my point. I’m totaly fine with your answer. It was ment to be like: Thank you, check I understand now ??

    I was just adding that I’ve used regex to replace #xxx in my text before importing it into your plugin.

    Thank you for the great work!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect not working with source urls with # in it’ is closed to new replies.