+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / external page not forwarding correctly!

external page not forwarding correctly!

35 posts, 0 answered
  1. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    15 Oct 2008
    Link to this post
    I have an external page that is setup for mysite.com/hr/jobs.aspx where this page is set as external, going to another page https://jobs.mysite.com:453/index.aspx. This worked perfectly on prior to the 3.5 upgrade, but now I'm getting a huge error that looks like a bug in how the external page is redirected. This is the error I get:

    '/https:/jobs.mysite.com:453/index.aspx' is not a valid virtual path.

    I DO have the correct link with two slashes (https://) set for the external url, but it is changing it to above, appending it to site.com so that the requested url is http://www.site.com/https:/jobs.mysite.com:453/index.aspx. What do I have to do to make the external link work correctly with the update?

    thanks!
  2. Nikola
    Nikola avatar
    51 posts
    Registered:
    24 Sep 2012
    15 Oct 2008
    Link to this post
    Hi SelArom,

    We couldn't reproduce the described behavior using Sitefinity 3.5. We tested using different urls with either "http" or "https", and all of pages worked as expected. 

    Could you please provide us with more details, such as when the entered url is being replaced and also any indications for client-script errors, as there is a validator that would prohibit usage of urls starting with '/https://...'.

    Have you tried recreating the page or creating a new test one of type External with the mentioned url? Thanks!

    Sincerely yours,
    Nikola
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    15 Oct 2008
    Link to this post
    thank you for your prompt reply!

    i had already tried creating a new external page. I deleted the old one, make a whole new one, and added again the same link, and made sure it was correct without any leading / and that it was and is a full valid url...

    i got the same result! and here's the weird thing, in the sitefinity admin sitemap, where I can see a preview of the page, it works just fine!

    so I'm guessing it HAS to be something on my end, a module or something that is intercepting the request and processing it incorrectly... here's some debug info the thing gives me:

    [HttpException (0x80004005): '/https:/jobs.site.com:453/index.aspx' is not a valid virtual path.]
       System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +3536351
       System.Web.HttpContext.RewritePath(String path, Boolean rebaseClientPath) +111
       Telerik.Cms.Web.CmsHttpModule.RewriteURL(String newURL) +73
       Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e) +2211
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    

    I'd like to be able to pinpoint where this is happening but I cannot seem to trace it, I intercepted the request at using debugger, but I couldn't see where it's changing the url...
  4. Nikola
    Nikola avatar
    51 posts
    Registered:
    24 Sep 2012
    16 Oct 2008
    Link to this post
    Hello SelArom,

    Thank you for the additional information.

    We've also tested the External page link in the public website navigation and it was redirecting just fine.
    Your assumption is correct, probably a custom module or handler is changing the url prior it's been rendered to the client.

    If you could send us your project, we would be able to investigate and to debug it. Thanks!

    Regards,
    Nikola
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    17 Oct 2008
    Link to this post
    i have one module that is intercepting requests to make sure they're lower case. that's it. I disabled it COMPLETELY and I am STILL getting this error! I have triple checked that the url is correctly spelled and entered into the url field, but it is STILL not working.

    I looked in the database and the url is saved correctly in the table, but it is not being rendered correctly by the page when redirecting or whatever it does. I need to know what else I can try to fix this, thank you
  6. Nikola
    Nikola avatar
    51 posts
    Registered:
    24 Sep 2012
    20 Oct 2008
    Link to this post
    Hello SelArom,

    It's hard to say what exactly interferes the correct url resolving. It could be a result of url rewriting customizations, handler modification etc.

    Could you send us your project along with a database backup, so we can investigate it. Thanks! 
     
    All the best,
    Nikola
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    20 Oct 2008
    Link to this post
    my db is 45mb in size, and my project is equally large as this is a big site. is it possible for me to send a subset of data? if you let me know what to include I'll send it, but I'll probably still need an ftp to dump it since it will still be pretty big
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Oct 2008
    Link to this post
    Hello SelArom,

    We have reproduced the problem. The external page needs to be in a Page Group, and the issue is reproducible.
    We fixed this, and will deliver the fix withing SP1 - for more information please refer to the announcement 3.5 SP1 to be released soon. We apologize that could not help right away.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    22 Oct 2008
    Link to this post
    okay sounds good but I'm confused about what exactly the problem was. not a big deal it's just my curiousity...
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Oct 2008
    Link to this post
    Hello SelArom,

    The problem was in the way how the url was formed. There was always one slash ("/") appending at the beginning of the URL, which was causing a invalid link or a bad request.

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  11. Developer
    Developer avatar
    2 posts
    Registered:
    08 May 2008
    27 Oct 2008
    Link to this post
    I am experiencing issues with trying to use the following url and it tells me it is not a valid url...

    https://app.e2ma.net/app/view:Join/signupId:26771


  12. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    27 Oct 2008
    Link to this post
    Hello Developer,

    You could modify or remove the RegularExpressionValidator control from PagePropertiesInsert.ascx and PagePropertiesEdit.ascx templates:

    <asp:RegularExpressionValidator runat="server" ID="ExtUrlRegExprValidator" ValidationExpression="((http|https)://([\w-]+\.)+[\w-]+|~)(:\b[0-9]{1,5}\b)?(/[\w- ./?%&=]*)?" ControlToValidate="ExternalURL" ValidationGroup="PageProperties" ErrorMessage="" Display="Dynamic" CssClass="validMessage"><strong><asp:Literal ID="Literal2" runat="server" Text="<%$Resources:ExternalPageLocationInvalid %>"></asp:Literal></strong></asp:RegularExpressionValidator 

    You can find these templates in the following directory: ~/Sitefinity/Admin/ControlTemplates/Pages.

    It is really hard to take into account all possible valid urls into one regular expression, but we will try to update these expressions.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  13. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    10 Jul 2009
    Link to this post
    I am having an issue with this also.  I am using the latest verison of Sitefinity and I have removed the RegEx value that you suggested.  What is really odd is the fact that when I set the page within the administration section for pages I can see the exact page that I am looking for, but when I try to go to the page on my server, it just comes back with everything minus the query string.

    Any suggestions?
  14. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Jul 2009
    Link to this post
    Hello medicalwebgeek,

    I am testing with the current version - 3.6SP2 and everything is working as expected. The query string is there. Could you please let me know which version do you use?

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  15. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    15 Jul 2009
    Link to this post
    I am using 3.6 SP2 - Here is how I have my structure setup:
    External Page Parent
    External Page Child
    External Page Child

    Everything worked fine when I first set them up, but then I edited them and now the ones that I edited no longer work correctly.  It is really odd because when I am in the admin part of Sitefinity, the correct page shows, but it does not show on my live site or when I click the link at the top to view it in another window.
  16. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    20 Jul 2009
    Link to this post
    Please let me know if you have been able to test my sample based on how I have my site setup.
  17. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    21 Jul 2009
    Link to this post
    Hi medicalwebgeek,

    Here is what I did:

    1. Created the following structure of external pages:
    Parent
       |_sub1
       |_sub2
    2. Logged out.
    3. Saw the pages in a SiteMenu. Each link of it took me to the correct external page
    4. Logged in.
    5. Changed sub1 - set a different name of the external page - sub3.
    6. Saved and tried again - it worked as expected.

    Obviously I am doing something wrong. What do I miss?

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  18. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    21 Jul 2009
    Link to this post
    Do your external pages have query strings in them? 
  19. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    21 Jul 2009
    Link to this post
    Hello medicalwebgeek,

    Yes. I tested with the following URLs:
    Parent: http://site.com/index.aspx?subaction=showcomments&id=1247256530&archive=&start_from=&ucat=1&
    Sub1: http://site.com/index.php?subaction=showfull&id=1209911586&archive=&start_from=&ucat=5&
    Sub2: http://site.com/index.php?subaction=showfull&id=1231912576&archive=&start_from=&ucat=5&

    Does your site have a live url?

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  20. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    21 Jul 2009
    Link to this post
    i am not sure what is going on on my end.  Like I said, it was working fine until I started modifying the links and now it cuts off my query string after aspx.  I just created a control that allows me to drop the url in and that seems to work now. 

    I would not have anything to do with the fact that I replicate my data to an external database would it?
  21. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Jul 2009
    Link to this post
    Hi medicalwebgeek,


    It would not have anything to do with the fact that I replicate my data to an external database would it?

    Yes, this should make any difference, although we store the URLs in the database.

    I am glad that you have a solution. We will prepare some extensive test cases in this area and I will follow up if we find something suspicions.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  22. ctca
    ctca avatar
    2 posts
    Registered:
    25 Aug 2009
    25 Aug 2009
    Link to this post
    I am also having the same problem with the querystring not coming through for an external page. I see it in the database, but it doesn't come up when I click on the link. I haven't changed anything with the RegEx Validator and I am using 3.6

    I really need this to work. Any suggestions?

    ~Chad
  23. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    27 Aug 2009
    Link to this post
    Hello vipergtsrz,

    Can you please check your version per the KB article - http://www.sitefinity.com/support/kb/sitefinity-3-x/how-to-check-your-current-sitefinity-version.aspx. Then, please provide us with some sample query string which is not carried on. We will test with your data and version, and will follow up.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  24. ctca
    ctca avatar
    2 posts
    Registered:
    25 Aug 2009
    27 Aug 2009
    Link to this post
    The URL I was using looked like this http://www.mysite.com/?param=value&

    I looked at the URL and saw that extra "&" at the end of it. When I took off the "&" and saved the page, it worked.

    So maybe do a test with a URL that has a trailing "&" and see?

    My issue is resolved though. Thanks.
  25. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    27 Aug 2009
    Link to this post
    Hi vipergtsrz,

    I am still having a hard time to reproduce it here with the latest 3.7 release, but will continue looking into the problem tomorrow morning.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  26. gabs002
    gabs002 avatar
    64 posts
    Registered:
    17 Dec 2009
    26 Apr 2011
    Link to this post
    Hello!

    I have a similar problem.

    I've created a page "XX" and set the settings to "external page". As external page location I set up "http://www.wifiwien.at/go.aspx?md=haude". But when I call my page "XX", a different page is shown up, as when I type the url into Internet Explorer.

    I hope you can help me with this problem!

    Thank you, Gabriele
  27. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Apr 2011
    Link to this post
    Hi vipergtsrz,

    When I checked your link, I got redirected to

    http://www.wifiwien.at/default.aspx?menuId=1570

    You have some redirect that comes from http://www.wifiwien.at

    Greetings,
    Ivan Dimitrov
    the Telerik team

  28. gabs002
    gabs002 avatar
    64 posts
    Registered:
    17 Dec 2009
    26 Apr 2011
    Link to this post
    Hi,

    yes! this is the right redirection. But when I call my page "XX" I get redirected to "http://www.wifiwien.at/eShop/kursbuch.aspx", which is wrong!

    Thanks, Gabriele
  29. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Apr 2011
    Link to this post
    Hello vipergtsrz,

    I could not replicate this issue locally. I got to the correct page.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

  30. gabs002
    gabs002 avatar
    64 posts
    Registered:
    17 Dec 2009
    26 Apr 2011
    Link to this post
    I'm using Sitefinity 3.5 - should I update to another Version?

Register for webinar
35 posts, 0 answered
1 2