Deeplink with authentification

Hey there,

I’d like to link my application to RouteXL via your deeplink. But as I have to import many locations, I tend to exeed the free user’s limit. How can I make sure to be logged in when I’m using your deeplink?

There is no method to log in with the deeplink. You should be logged in before opening the deeplink.

To log in immediately when opening the the browser window, load it with this URL:

https://www.routexl.nl/blog/wp-login.php?redirect_to=https%3A%2F%2Fwww.routexl.nl%3Flang%3Den

Thank you for your answer, but this didn’t solve my problem so far. But after a little research if found the solution to my problem by myself that might be interesting for you.

I used the deeplink according to your example on the wiki page. But as your log in dialog is always redirecting to your routexl.nl domain, one cannot use other tlds that you provide - like .com or .de The reason might be probably your log in cookie that is only valid for routexl.nl.

To make it easier for other users you might change your deeplink URL example on your wiki page from http://www.routexl.com/?q=… to http://www.routexl.nl/?q=

Thank you for sharing your solution and the suggestion for the wiki page. We have made the change and added the language parameter to have the page translation default to English.

I’m also trying to use this workaround, however my link doesn’t redirect to the deeplink. It redirects to https://www.routexl.com/blog/wp-admin/profile.php

https://www.routexl.nl/blog/wp-login.php?redirect_to=https%3A%2F%2Fwww.routexl.nl%3Fq%3DLaan+van+Deelen+3%2C+2497+GG%2C+Den+Haag%2C+%40Geusdiervoeding%40%24Rh%C3%B4nestroom+24%2C+2721CC%2C+Zoetermeer++%2C%40Naam1%40+%2C+%7B+Tel%3A+0612345678+Bezorgtas%3A+Leegmaken+Betaalwijze%3A+iDEAL%7D%24Jurriaan+Kokstraat+248%2C+2586+SP%2C+Den+Haag++%2C%40Naam2%40+%2C+%7B+Tel%3A+0612345678+Bezorgtas%3A+Omwisselen+Betaalwijze%3A+iDEAL%7D%24Boksdoornstraat+40%2C+2563+TS%2C+Den+Haag++%2C%40Naam3%40+%2C+%7B+Tel%3A+0612345678+Bezorgtas%3A+Omwisselen+Betaalwijze%3A+iDEAL%7D%24Laan+van+Meerdervoort+1366%2C+2555+CJ%2C+Den+Haag++%2C%40Naam4%40+%2C+%7B+Tel%3A+0612345678+Bezorgtas%3A+Leegmaken+Betaalwijze%3A+iDEAL%7D

for some reason my link is formatted differently on this forum, its encoded the way it should be however it doesn’t show it that way here.

This is an older thread, meanwhile we’ve changed our main domain to routexl.com, so wherever it says .nl change that to .com

Thank you, redirecting works now, however, the redirection partially decodes my URL. Now it doesn’t work anymore…

https://www.routexl.com/blog/wp-login.php?redirect_to=https%3A%2F%2Fwww.routexl.com%3Fq%3DLaan%20van%20Deelen%203%2C%202497%20GG%2C%20Den%20Haag%2C%20%40Geusdiervoeding%40%24Rh%C3%B4nestroom%2024%2C%202721CC%2C%20Zoetermeer%20%20%2C%40Naam1%40%20%2C%20%7B%20Tel%3A%200612345678%20Bezorgtas%3A%20Leegmaken%20Betaalwijze%3A%20iDEAL%7D%24Jurriaan%20Kokstraat%20248%2C%202586%20SP%2C%20Den%20Haag%20%20%2C%40Naam2%40%20%2C%20%7B%20Tel%3A%200612345678%20Bezorgtas%3A%20Omwisselen%20Betaalwijze%3A%20iDEAL%7D%24Boksdoornstraat%2040%2C%202563%20TS%2C%20Den%20Haag%20%20%2C%40Naam3%40%20%2C%20%7B%20Tel%3A%200612345678%20Bezorgtas%3A%20Omwisselen%20Betaalwijze%3A%20iDEAL%7D%24Laan%20van%20Meerdervoort%201366%2C%202555%20CJ%2C%20Den%20Haag%20%20%2C%40Naam4%40%20%2C%20%7B%20Tel%3A%200612345678%20Bezorgtas%3A%20Leegmaken%20Betaalwijze%3A%20iDEAL%7D

The $ used to seperate adresses doesn’t seem to be decoded properly, it just disappears. Any workaround for this? The same happens to the {} markers to add comments…

The problem is that are two parts that need to be urlencoded.

First, the redirection URL after login. That is everything after ?redirect_to=

Second, the locations that need to be mapped after redirection. That’s everything after ?q=

Combining this, the second part needs to be urlencoded twice. For example, a space %20 becomes %2520. In your case:

https://www.routexl.com/blog/wp-login.php?redirect_to=https%3A%2F%2Fwww.routexl.com%3Fq%3DLaan%2520van%2520Deelen%25203%252C%25202497%2520GG%252C%2520Den%2520Haag%252C%2520%2540Geusdiervoeding%2540%2524Rh%25C3%25B4nestroom%252024%252C%25202721CC%252C%2520Zoetermeer%2520%2520%252C%2540Naam1%2540%2520%252C%2520%257B%2520Tel%253A%25200612345678%2520Bezorgtas%253A%2520Leegmaken%2520Betaalwijze%253A%2520iDEAL%257D%2524Jurriaan%2520Kokstraat%2520248%252C%25202586%2520SP%252C%2520Den%2520Haag%2520%2520%252C%2540Naam2%2540%2520%252C%2520%257B%2520Tel%253A%25200612345678%2520Bezorgtas%253A%2520Omwisselen%2520Betaalwijze%253A%2520iDEAL%257D%2524Boksdoornstraat%252040%252C%25202563%2520TS%252C%2520Den%2520Haag%2520%2520%252C%2540Naam3%2540%2520%252C%2520%257B%2520Tel%253A%25200612345678%2520Bezorgtas%253A%2520Omwisselen%2520Betaalwijze%253A%2520iDEAL%257D%2524Laan%2520van%2520Meerdervoort%25201366%252C%25202555%2520CJ%252C%2520Den%2520Haag%2520%2520%252C%2540Naam4%2540%2520%252C%2520%257B%2520Tel%253A%25200612345678%2520Bezorgtas%253A%2520Leegmaken%2520Betaalwijze%253A%2520iDEAL%257D

This also doesn’t seem to work, I don’t see why though.

Because URL’s get malformed by the forum software. We’ve changed the formatting now. Just copy the URL and paste in the browser address bar.

Works now! Thanks for your explanation, my deeplink is generated by a own written PHP script, I’ll just have to tweak my code now so my URL gets decoded twice.

1 Like