Welcome to the Community Exchange

Welcome to the Community Exchange, a place where community members can exchange questions and answers related to DotNetNuke. If you would like more info about the Community Exchange, please visit this page in our Wiki. 

Mobile site looks to be missing imges and css when using site redirect management

I have a responsive mobile site that works and shows perfect on browser and also if I open directly on mobile.

Now after i set site redirection on the main portal and browse again i get redirected correctly but the site shows empty I dont see images and only the base html it looks as if none of the css is loaded

Now if I disable the sire redirection rule on the main portal and update a skin myself to redirect using ClientCapability the site loads perfect again. this is what I am doing in my skin

<script runat="server">
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim device As IClientCapability = ClientCapabilityProvider.CurrentClientCapability
        If device.IsMobile Then
            Response.Redirect("http://website.com/mobile")
        End If
    End Sub
</script>

Anyone have an idea what can cause this behavior?

 

asked 8/1/2012
Armand Datema123
Armand Datema

1 Answer

Hello Armand:

Try using this at the begining of your mobile skin:
<dnn:Meta runat="server" Name="viewport" Content="initial-scale=1.0,width=device-width" />

Hope this helps

answered 8/1/2012 Baifo Designs 615
Baifo Designs
  • I used the 40fingers style object to do the same but still nothing. For now I keep my inline redirect I have no idea how I would debug this on a mobile device - Armand Datema 8/2/2012

Your Answer

In order to provide an answer to this question, you must Login

I am flagging this question because...




10 inform moderator flags remaining

I am deleting this question because...




I am flagging this answer because...




10 inform moderator flags remaining

Flagging a Post

You have already flagged this post. Clicking "Remove Flag" below will remove your flag, thus reducing the count by one as well.

I am deleting this answer because...




DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.