Title: hard coded redirect
Last modified: March 15, 2021

---

# hard coded redirect

 *  [roundaboutweb](https://wordpress.org/support/users/roundaboutweb/)
 * (@roundaboutweb)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-redirect/)
 * If you are not logedin and click on a profile there is a hard coded link to “/
   wp-login.php?action=register”. This don’t work if “wp-login.php” will be changed
   by security.
    You can test it with Plugins like “WPS Hide Login”.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhard-coded-redirect%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Jacques Malgrange](https://wordpress.org/support/users/sojahu/)
 * (@sojahu)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-redirect/#post-14185400)
 * Hi,
 * Thanks for this idea. I will add an attribute to `[rencontre_libre]` shortcode
   to set the redirect Url.
    For the next update, you can use this : `[rencontre_libre
   redirect=https://mysite.com/myregisterpage]`
 * In the meantime, you can modify the template **rencontre_libre_portrait.php**.
 * Regards
 *  Plugin Author [Jacques Malgrange](https://wordpress.org/support/users/sojahu/)
 * (@sojahu)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-redirect/#post-14185460)
 * I answered a little quickly. The option already exists in
    Rencontre > Custom
   > “Change register link on click a portrait (empty => default WP)”
 * Regards
 *  Thread Starter [roundaboutweb](https://wordpress.org/support/users/roundaboutweb/)
 * (@roundaboutweb)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-redirect/#post-14185931)
 * Nice, but it don’t work:
 * [https://nextcloud.roundaboutweb.info/index.php/s/KDs3amSii3gqMgP](https://nextcloud.roundaboutweb.info/index.php/s/KDs3amSii3gqMgP)
 * Yes, cache will be cleard!
 *  Thread Starter [roundaboutweb](https://wordpress.org/support/users/roundaboutweb/)
 * (@roundaboutweb)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-redirect/#post-14186101)
 * The bug will be in line 18 of rencontre_libre_portrait.php:
    `<a href="<?php 
   echo $rencDiv['siteurl'].'/wp-login.php?action=register'; ?>">`
 *  Thread Starter [roundaboutweb](https://wordpress.org/support/users/roundaboutweb/)
 * (@roundaboutweb)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-redirect/#post-14186152)
 * **And here:**
    rencontre_imgreg.php: line 14 and 59 rencontre_libre_search_portrait.
   php: line 18 inc/base.php: line 3095 rencontre.php: line 898
 * And some more witch I don’t find.
    I changed what I found but the problem will
   always be there.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘hard coded redirect’ is closed to new replies.

 * ![](https://ps.w.org/rencontre/assets/icon-128x128.png?rev=990206)
 * [Rencontre - Dating Site](https://wordpress.org/plugins/rencontre/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rencontre/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rencontre/)
 * [Active Topics](https://wordpress.org/support/plugin/rencontre/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rencontre/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rencontre/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [roundaboutweb](https://wordpress.org/support/users/roundaboutweb/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/hard-coded-redirect/#post-14186152)
 * Status: not resolved