A Uniform Resource Identifier (URI) is a string of characters used to identify a resource. The most common form of URI is the Uniform Resource Locator (URL), frequently referred to informally as a web address.

learn more… | top users | synonyms (2)

0
votes
0answers
22 views

How to make clean url on Quicktabs

I have a quick tabs on my homepage. When the tabs are clicked the url of homepage changed to like this: http://www.example.com/home?qt-homepage_tab_menu=0#qt-homepage_tab_menu . . . What should I do ...
0
votes
1answer
32 views

URL specific form for anonymous user

I'd like to investigate if the following scenario is plausible somehow in Drupal 7: The creation of a public form (node form/webform or whatever) with many instances so that each instance can be ...
0
votes
2answers
24 views

item.url generated at menu issue

I am working on my client's project and they are using Drupal 8. I discovered that when one uses http://example.com/index.php to access the webpage, the url generated by the menu items , the index....
0
votes
1answer
26 views

How to load page content by url programmatically in custom region

How to load page content /node/add/page programmatically in custom region? Example of custom region (https://jsfiddle.net/makbuk/1vetkgL2/). I have found this How to get a node by its url alias? but ...
0
votes
0answers
20 views

Creating a Url Object from a URI in update.php

To update a couple of our websites, I'd like to update the visibility of a block created in a plugin of mine. So in my plugin.install file I created a new function and put in the following code: $...
2
votes
1answer
32 views

Is it possible to pass a Field value Via URL when creating a Node?

This may be posted elsewhere but I was having trouble finding anything answering my question directly. I have a content type called Ticket that I want to have different fields based on what page a ...
1
vote
2answers
36 views

How do I prevent accessing a page with /node/37 directly when an alias has been set?

I work with Drupal 8. I've set an url alias for my page to /nice-url. When I acces it via http://mypage.com/nice-url everything works fine. The problem is, this page is still accessable via http://...
0
votes
0answers
12 views

Drupal URL node number placeholder

Hi can anybody help point me in the right direction. I have Organic groups setup and I have created a user dashboard with URL links going to specific organic group admin pages. The problem I face is ...
0
votes
1answer
19 views

How to map views url to blog url

In my site I am using blogs module. When I used sitename/blog default blog page will display. But my requirement is, I have created a view to display the blogs, this is on the path of sitename/blog-...
0
votes
1answer
11 views

View that display single node which has id the same as last part of url (from last / to the end)

I have an urls: website.com/portfolio-entries/23 website.com/portfolio-entries/25 I would like to make an view for them to display node which has id the same as last part of url (from last / to ...
0
votes
0answers
11 views

Breadcrumbs & url path reflecting parent “category” (home > news > news #5)?

I am using Easy Breadcrumb module to render breadcrumbs on every page. I've created my new custom content type named "News entry". I've also added an custom view named "news_view" (title: All News, ...
1
vote
1answer
24 views

how to make url string absolute?

In order to get entity link, I'm using: $entity->getTranslation($language)->url(); So it gives me : /en/node/21 But I want this url to be absolute. How to pass $options = array('absolute' =&...
1
vote
1answer
20 views

How to use hook_url_outbound_alter for emails only?

I have a Rule set up that sends a mail to a certain user with a link to a certain node. This link is altered using hook_url_outbound_alter to include additional details. The problem is that ...
1
vote
2answers
57 views

Post form to external URL

I need to POST the data in a form to an external URL. In Drupal 7, you would use $form['#action'] = url('http://example.com', array('external' => true)); Or maybe this was for GET. Anyway... in ...
1
vote
1answer
68 views

How do I use absolute URLs?

I created a view for node titles only. I have inserted this view in simplenews newsletter using the Insert view module. The node title in newsletter emails are relative and broken. How do I configure ...
1
vote
0answers
38 views

Need help with URL for filter

I have 4 taxonomy vocabularies: city, manufacturer, what need to do and addition. In search block user select parameters, one for one vocabulary, and goes to the page like sitename/filter?f[city]='...
0
votes
1answer
30 views

Datepicker not appearing when an url alias is added

I've implemented a datepicker in a textfield on a basic page from Drupal. It works fine and the url shown is "http://....../drupal7/node/28". If I add an url alias to the url, the datepicker doesn't ...
0
votes
1answer
49 views

How can I get the URL to the public files directory?

I'm can get the path to the public files directory by using Filesystem::realpath: $path = $filesystem->realpath('public://'); But how can I get the URL of public://?
2
votes
1answer
35 views

Search API path make SEO friendly

I am using Search API. I make a view of all the indexed entities and uses Taxonomy term as Contextual Filter. But the path of view is not SEO friendly. The path is like http://www.example.com/en/Real%...
2
votes
2answers
130 views

What is the correct URI syntax for using Forena to connect to a Postgres database?

I am trying out Forena Reports and in connecting to a Postgres table I set the the Driver Type to Postgres Database and the URI to postgresql://username:password@127.0.0.1:5432/database. The problem ...
0
votes
1answer
24 views

How do I reference an image inside my custom module directory?

I want to ship a default image in my custom module. I know I can reference images in the files directory with public://, but how can I properly reference my module's URL path? Update: I need to pass ...
0
votes
1answer
13 views

How to point a menu link at a View with multiple options on the same exposed filter selected?

I've got a view page that serves like a catalog, using many exposed filters. I want a menu link that points to a certain combination of filters. Let's say the URL for this filtered view is> view?...
1
vote
0answers
21 views

I have the problem in url path settings? [duplicate]

I have some basic pages in my site, it has url paths. When i pass the url its works properly. Eg: www.mysite.com/about-us it opens perfectly. But my problem is if i pass url as www.mysite.com/...
0
votes
1answer
21 views

Redirect taxonomy term page links to a View page's exposed filter

I'm trying to make every taxonomy term page link direct to a pattern like this: /viewpage?[term:vocabulary][]=[[term:tid]] So, for example instead of material/bronze where bronze has term id 7, ...
4
votes
1answer
367 views

how to get base url of a site?

My site is on http://drupal8.local/. How do I get the drupal8.local part of that URL? Url::fromRoute('<'current'>') or base_path() returns the path parth of the URL; For example, for http://...
1
vote
1answer
62 views

How do I use Url::setUnrouted() in a custom module?

How do I use Url::setUnrouted() in a custom module? If I call this method I get the following error: Call to protected method Drupal\\Core\\Url::setUnrouted()
0
votes
2answers
31 views

How to make sure that /taxonomy/term/24/WHATEVER gives 404?

Google found up some weird links on my website and has started indexing stuff like /taxonomy/term/24/WHATEVER. I don't want that. I also don't want to find all these URLs manually, ideally they will ...
0
votes
1answer
36 views

Automatically generated invaild URL

In admin/config/search/redirect/404, I found a lot of invalid url, it's a lot of additional "products" on our url, for example, News/products/products/products/products/products/products; LED-...
0
votes
1answer
9 views

Use View as root homepage handler

In Drupal 7 I'm trying to accomplish the following: 1) www.domain.com = ViewA (All posts) 3) www.domain.com/muffins = ViewA (Posts tagged with "Muffin" taxonomy) 4) www.domain.com/...
1
vote
2answers
16 views

Downloads restrictions through direct URL

I am developing one feature in which user will get one pdf from my site, for this I have developed a process below, 1) user will click on the link and form open in popup 2) after submitting the form ...
1
vote
0answers
15 views

Randomize url alias where every time a user logs in the url is different

I would like to generate a random url for a certain page every time when a user logs in to see this page. The idea is that copying the url to somebody else does not work. How would I do that?
0
votes
1answer
22 views

Get a 404 page already when calling with trailing slash

My SEO agency complains about the following: Let's assume the URL http://example.com/foo leads to a non-existing page. Then Drupal correctly responds with a 404. Now, if I call http://example.com/...
0
votes
1answer
28 views

How to use titles instead of IDs in urls for nodes?

I am managing a site right now (Drupal 6) and the links are all coming out in the form http://example.com/blog/12553. I'd like these urls to be based on the name of the article. I could swear that ...
1
vote
0answers
17 views

Auto submit form with argument from URL [duplicate]

I have Drupal module with a form and it works just fine (/my_module/search) I need menu hook for my_module/search/% and to be auto submitted and repopulate the form with the argument form url. So ...
1
vote
2answers
63 views

Remove language prefix from custom URL

Our site exists in several languages. I have installed xmlsitemap module and default link looks like sitename/en/sitemap.xml I need to remove language prefix just for this link. It seems like there's ...
0
votes
0answers
29 views

Absolute path to an image [duplicate]

This is a really basic question, but I haven't been able to find a clear answer on how to do this: I am designing a TWIG template and am inserting an image into it. I would like the image to have ...
0
votes
0answers
36 views

Hook before the file insert, before the file come on the server?

I want alter the URI's files before they are stocked in the server. The file insert, I mean, everywhere/time a file is uploaded via Drupal (all insert file process, not only when an user add a file ...
2
votes
1answer
391 views

How to get the valid URL of a Link field from within a Twig template?

I have a Link field named field_my_link (machine name). Within a Twig template I can get the link's URL value with this: {{ node.field_my_link.uri }} If inside the Link's URL there is an external ...
1
vote
1answer
33 views

Redirect exclusion rule in .htaccess does not work

I have a rule in my .htaccess to redirect all HTTP traffic to HTTPS, and I'm trying to exclude some specific URL from redirect, so I added the negation exclusion rule: RewriteCond %{HTTPS} off ...
0
votes
1answer
89 views

getting URL from Route: breaks in localhost subdirectory

I just had a Drupal 8 site break when moving it from a top-level domain on a server to a subdirectory on my desktop machine: apparently that subdirectory wants to be included in the URL as converted ...
1
vote
0answers
23 views

How can I shorten Facet API urls programatically?

My site uses Search API and Facet API for search. My user search has several entity references that are also indexed. So, when just two facets are activated, this gives me a URL like this: http://...
1
vote
0answers
23 views

display alternate url after redirect using $base_url

1) have 2 d8 sites: site1.com and subd.site2.com in a multisite server (no root access) 2) would like site1.com/subd to redirect to subd.site2.com BUT display url site1.com/subd 3) I now have an ....
1
vote
1answer
88 views

How to force Views (or whole Drupal) to lowercase page paths?

Is it possible to force Views to always lowercase URL paths? Here is a detailed example. I'm using contextual filters to filter by node field (field's name is country). Here are the node examples: ...
1
vote
1answer
61 views

How to read JSON data from external URL and display it in a node

I want to read json data from external url and display those data in a node. After that I would like to add filters in the result using views. I have created a view using external url(query settings) ...
1
vote
0answers
13 views

File Aliases Error “Cannot add field filefield_paths.filealias: table doesn't exist” [closed]

When I try to install File Aliases module, which is a dependency of File (Field) Paths, I got the error "Cannot add field filefield_paths.filealias: table doesn't exist". I tried the installation ...
1
vote
1answer
13 views

When an image shows up in “page not found” in Watchdog, how to find the content containing the image link?

I disabled the countryicons_shiny module on my site, and now I'm getting some errors in Watchdog showing that the images weren't found: Details Type page not found Date April 3, 2016 User ...
1
vote
0answers
29 views

View leads to 'Page not found'

I had created a page called Analysis and then created a view with exactly the same name and /path. Did I confuse Drupal? I then deleted the Analysis page to have only a view at that path but am ...
0
votes
2answers
46 views

How to redirect with wildcard?

I have a old links let say : index.php/event/nr1 index.php/event/nr2 If the user is coming on index.php/event/* (so every url behind event) they should be redirected to /event How to do this?
1
vote
2answers
29 views

Where does Drupal store its url/domain name?

I created a site using an IP address and imported a live site on another server, then I made the domain name live on the new server created with the IP address. Since then I get permissions error for ...
1
vote
0answers
23 views

Facet api, active filter, link/url rewrite

This question relates to faceted search and views and urls - I couldn't find a answer yet and I hope this is the right place to post this question. I've configured a facet search on a D7.43 site with ...