HTML - Suma de hrefs en la url

 
Vista:
sin imagen de perfil

Suma de hrefs en la url

Publicado por Rubén (1 intervención) el 22/03/2017 12:04:58
Buenas tardes, mi problema es que tengo un menú en el cual tengo varios enlaces a las distintas páginas de mi web, pero cuando hago click desde una página que no es la principal en lugar de sustituir la url para ir a esta se la suma.
Gracias por su ayuda.
El código de mi menú es este:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<style>
    #navmenu {
        width: 170%;
        padding: 0px;
    }
 
    @media (max-width: 1204px) {
        #navmenu {
            width: 100%;
            text-align: center;
            padding-right: 10%;
        }
    }
</style>
<nav class="c-mega-menu c-pull-right c-mega-menu-dark c-mega-menu-dark-mobile c-fonts-uppercase c-fonts-bold">
 
    <script>
        var navegador = navigator.userAgent;
        if (navigator.userAgent.indexOf('Firefox') != -1) {
            document.write("<ul id='navmenu' class='nav navbar-nav c-theme-nav' style='margin-left: -59%; margin-top: 12px;width:205%;'>");
        } else {
            document.write("<ul id='navmenu' class='nav navbar-nav c-theme-nav' style='margin-left: -65%; margin-top: 12px;'>");
        }
    </script>
 
 
    <li class="c-menu-type-classic" style="margin-right: 4.5%;margin-top: 7px;">
        <a id="escribemenu" href="escribe/libro.php" class="c-link dropdown-toggle"
           style="font-size:13px;padding: 0px;">ESCRIBE
 
        </a>
    </li>
    <li style="margin-right: 4.5%;margin-top: 7px;">
        <a id="publicamenu" href="publica/libro.php" class="c-link dropdown-toggle"
           style="font-size:13px;padding: 0px;">PUBLICA
 
        </a>
    </li>
    <li class="volverinvisible" style="margin-right: 4.5%;margin-top: 7px;">
        <a id="distribuyemenu" href="distribuye/libro.php" class="c-link dropdown-toggle"
           style="font-size:13px;padding: 0px;">DISTRIBUYE
 
        </a>
    </li>
    <li style="margin-right: 4.5%;margin-top: 7px;">
        <a id="opinionesmenu" href="opiniones/index.php" class="c-link dropdown-toggle"
           style="font-size:13px;padding: 0px;">OPINIONES
 
        </a>
    </li>
    <li style="margin-right: 4.5%;margin-top: 7px;">
        <a id="autoresmenu" href="autores/index.php" class="c-link dropdown-toggle"
           style="font-size:13px;padding: 0px;">AUTORES
 
        </a>
    </li>
    <li style="margin-right: 4.5%;margin-top: 7px;">
        <a id="catalogomenu" href="catalogo/index.php" class="c-link dropdown-toggle"
           style="font-size:13px;padding: 0px;">CATÁLOGO
 
        </a>
    </li>
    <li style="margin-right: 4.5%;margin-top: 7px;">
        <a id="noticiasmenu" href="noticias/index.php" class="c-link dropdown-toggle"
           style="font-size:13px;padding: 0px;">NOTICIAS
 
        </a>
    </li>
    <li style="margin-right: 4.5%;margin-top: 7px;">
        <a id="tarifasmenu" href="tarifas/index.php" class="c-link dropdown-toggle"
           style="font-size:13px;padding: 0px;">TARIFAS
 
        </a>
    </li>
    <li style="margin-right: 4.5%;margin-top: 7px;">
        <a id="contactamenu" href="contacta/index.php" class="c-link dropdown-toggle"
           style="font-size:13px;padding: 0px;">CONTACTA
 
        </a>
    </li>
    <li>
        <a href="javascript:;" data-toggle="modal" data-target="#login-form"
           class="c-btn-border-opacity-04 c-btn btn-no-focus c-btn-header btn btn-sm c-btn-border-1x  c-btn-circle c-btn-uppercase c-btn-sbold"
           style="font-size:13px;margin-top: -1px;">
            <i class="icon-user"></i>Acceder</a>
    </li>
    <!--
    <li class="c-search-toggler-wrapper">
        <a href="#" class="c-btn-icon c-search-toggler">
            <i class="fa fa-search">

            </i>
        </a>
    </li>
    -->
 
</nav>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder