Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Piseth 4 posts 83 karma points
    Feb 15, 2019 @ 22:12
    Piseth
    0

    Style not applied on subpage (v7.13.2)

    Hello, I think I did everything right, have HTML and CSS style applied to MasterPage Template. Then have all pages inherit from it. All the pages that is under home are working fine if visit it :

    domain.com domain.com/about domain.com/contact doman.com/products

    But I will get just a white blank page if I add "/"to the end : domain.com/about/

    and also subpage: domain.com/products/popcorn doesn't work, all I got just a blank white page.

    Please advise, I'm so new to this.

    P.S my resource reference to css :

    <link rel="stylesheet" href="/style.css" type="text/css" />
    

    even I tried this:

    <link rel="stylesheet" href="style.css" type="text/css" />
    

    Look forward to the comment.

  • Piseth 4 posts 83 karma points
    Feb 16, 2019 @ 12:34
    Piseth
    0

    Anyone has any ideas?

  • Tarik | WPPlumber 179 posts 801 karma points c-trib
    Feb 16, 2019 @ 17:18
    Tarik | WPPlumber
    100

    Piseth, I see that you need to specify a relative page URI in the header of the master template page using the following code as the 1st link there:

    <base href="/" />
    

    Preview for this issue:

    enter image description here After adding

    <base href="/" />
    

    enter image description here

  • Piseth 4 posts 83 karma points
    Feb 16, 2019 @ 17:25
    Piseth
    0

    Hey @Tarik. Wow... Magic. It works like a charm. Thanks very much. You save me. How come Umbraco never have this in their documentation, maybe I missed, but I look everywhere. Once again, thanks very much.

Please Sign in or register to post replies

Write your reply to:

Draft