Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [url]

The uniform resource locator, abbreviated as URL is a specific character string that constitutes a reference to a resource.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

URL doesn't recognize view after slash in custom component

The view in my custom component is no longer recognized in Joomla4 when passed as, for example, mycomponent/view/anotherinfo. In Joomla3, this worked normally. What happened? What do I need to change ...
2 votes
1 answer
242 views

Joomla 3.x routing and slug problem

I have 1 component with 2 views - default is view1 - secondary is view2. When I associate it with the menu from the backend, Joomla creates the correct url with alias for SEO. Example: www.sitename....
1 vote
2 answers
515 views

How to link article to specific menu item?

I have two menu items, for example Menu1 and Menu2. Both are a Category Blog for same category Cat1, but Menu1 has some specified tags. Of course, some articles are present on both pages, and all url'...
1 vote
1 answer
232 views

Pretty URL to custom joomla page

I have an URL: domain.com/photos?photoId=344 and I want to make pretty URL such as: domain.com/photos/344 I tried to correct htaccess: RewriteRule ^photos/([A-Za-z0-9-]+) /photos?photoId=$1 [L] ...
1 vote
2 answers
338 views

Joomla 4 SEF URLs broken since upgrade

We upgraded from Joomla 3 to Joomla 4 and since upgrading have found that many (almost all) links on the site are broken. Here is an example of a broken link: https://guildofenamellers.org/index.php/...
0 votes
1 answer
95 views

How do I change a page URL on Joomla 3.10.11?

I'm a complete newbie to Joomla here (been working with it for a few days only) and wanted to ask what is probably a silly question. For clarification I'm not using any SEF extensions/plugins - only ...
0 votes
1 answer
322 views

URL System Links not working

I don't know if this is a bug or if this is something new with Joomla 4, but any help would be greatly appreciated. In Joomla 2 and 3, I would create menu items of the URL System Links type that sent ...
0 votes
1 answer
56 views

EasyBlog Component missing image to URL to Facebook

I have problem with sharing URL to Facebook is missing image with Easyblog. I have upload cover image and there are pictures in article also. I check with Sharing Debugger and I can see the image. og:...
1 vote
1 answer
72 views

How to add userinfo to link in Joomla Page

We have a Joomla site (latest version) with a page that links to another system with a fixed username/pw, so like https://www.othersystem.com/login.php?un=[fixed_un]&pw=[fixed_pw]. Now we need ...
1 vote
2 answers
60 views

Component middleware for handling URLs

I have a component com_something that I am developing. Whenever a user goes to any view in this component (i.e. when the URL starts with index.php?option=com_something), I want to check the URL for a ...
0 votes
0 answers
38 views

Login form menu item URL redirect not working

I have setup a default login form menu item that should redirect users to a specific menu item after logging in. Instead they are being redirected to the homepage. The permissions on the login menu ...
1 vote
0 answers
56 views

Can I use uppercase in Joomla 4 url paths?

In Joomla 3 it was possible to use an URL of this form example.com/Essays/somethin-else because the router would match 'Essays' to the alias of an existing menu item (eg. 'essays, content, single ...
1 vote
0 answers
17 views

Filtering articles by author in url

Can I get articles from a specific author in this way in joomla 4? /index.php?option=com_content&view=category&id=87&layout=blog&filter[author_id]=42 This method works with Tags, but ...
1 vote
0 answers
108 views

Rewrite rule in htaccess in joomla 4?

In J3 i used specific rewrite rules in .htaccess that worked fine but doesn't seem to work in J4. Here's an example : RewriteRule ^metier/([a-zA-Z0-9-_]+)\.html$ /index.php?option=com_content&view=...
0 votes
2 answers
931 views

How to remove category from URL?

I have a little problem - I want to remove categories and submenus from URL in Joomla 3.9.3. Of course, I did basic things like removing ID from URLs, but removing category is like a milestone for me. ...
0 votes
0 answers
34 views

Linking to a category list item

I have a Joomla 4 menu item of type "List All Categories in an Article Category Tree". The menu item is FAQ, which sits under another menu item labelled Help. There is a category with an ...
1 vote
1 answer
161 views

Is it possible to remove language code for all languages from the URL Joomla 4 website

I have two languages installed on my website I went to the Language Filter plugin, and configured it. "Remove URL Language Code" to "Yes". www.example.com/en/company/contact.html ...
2 votes
1 answer
675 views

J4 component URL not SEF

Context: I have a component that works fine in J3 and I want to migrate it to J4. Problem: When I create a menu (Joomla main menu) on the frontend view of the component, in J4 only, the URL is not SEF ...
1 vote
1 answer
615 views

Joomla correct way of routing

This is in my Controller. Currently, I am redirecting using the inherited function setRedirect(URL_TO_REDIRECT_TO). public function redirectTo($layout){ $this->setRedirect('index.php?option=...
0 votes
2 answers
503 views

Alias and title in article url

At the moment my joomla articles are using the alias in the urls, like that: site.com/menu/article-alias Now I need to add the title of the specific joomla article in my url, too. So I will have a ...
2 votes
1 answer
44 views

Google search results for my site include some strange urls - how to deal with them?

For some reason Google has indexed some pages on my Joomla website using strange urls starting https://www.pgweb.uk/?id= https://www.pgweb.uk/?id=1605:new-dance-studio-launches-next-week When clicked ...
0 votes
1 answer
305 views

How to catch Joomla\CMS\Router\Exception\RouteNotFoundException in Joomla 4.1?

As per the title, how can we catch a RouteNotFoundException? For time constraints, instead of creating a custom component we opted for some hand-waving, and decided to display custom content at non-...
0 votes
0 answers
74 views

SEO-friendly URLs are being corrupted after update

I have built a directory website and started to add some content. I have created the standard pages (contact us, privacy, etc.) and added businesses. I would like SEO-friendly URLs, so I set: Search ...
1 vote
0 answers
375 views

Joomla 3.9 CORS error

I'm trying to allow CORS on my website but I can't get it to work. I've seen many posts about this, from updating .htacces, httpd.conf, meta tags, and php headers, but nothing worked. I always get a ...
1 vote
2 answers
99 views

How to define URL of Joomla sub-menus?

How/Where is the URL of a Joomla article (used as submenu item) defined when using URL-shortening? What I want to achieve is to have the article URLs to represent a submenu logic. For example, the URL ...
0 votes
1 answer
38 views

Update SEF URL to change what is output

Good day, I have inherited a very old Joomla site - and the are wanting URL updates for a custom module that was developed for them. The URL's currently contain car-rental-branch - which they want ...
2 votes
1 answer
67 views

Why is Joomla redirecting from example.com to example.com/example.com?

I was advised to post here from Stack Overflow We need help. We're running an ad campaign and realized that a lot of paid traffic was landing on a 404 not found page. The issue is caused by auto-...
1 vote
0 answers
38 views

Is there a way to make all pages in a menu have a slug in the URL?

I have a page for "Froggy Park" on my Joomla site, and right now it is at www.site.com/forkids/froggypark but I want the park to be at www.site.com/parks/forkids/froggypark The page is ...
2 votes
4 answers
8k views

Absolute SEF url with JRoute

I'm trying to figure out why I can't get a correct absolute SEF url with JRoute. I tried with this: JRoute::_(JUri::root().'index.php?Itemid=164') but it won't correctly SEF render it, it will just ...
25 votes
4 answers
51k views

Get the current Joomla URL

The following code works in Joomla 1.6, but it throws up a Strict Standards error in 3.x: Strict Standards: Only variables should be assigned by reference //Get the full URL for sharing ...
1 vote
0 answers
69 views

How can I give pages URLs with two layers of slashes in them?

I have a page at www.website.com/page51 with 0 layers of slash items in the URL (only the website and the page alias) and I want to make it have two layers of slash items, as in www.website.com/layer1/...
1 vote
2 answers
53 views

how to add a slash item before alias of a page

Right now, https://www.co.bergen.nj.us/shopping is a page on my site I want to make that page https://www.co.bergen.nj.us/tourism/shopping but I do not know how to add that to the URL. I tried ...
3 votes
1 answer
2k views

htaccess 404 Redirect Not Working

I recently redesigned a site and there are loads of 404 pages, so to simplify things I want to add a redirect to my htaccess, redirecting any 404 pages to the home page. I though it was as simple as ...
2 votes
1 answer
295 views

Remove Itemid from URL generated from manual links in articles

I have been looking for hours but I have been unable to find an answer for my case. I have an Article which is used for the home menu. For some reason the Read More option is not working but that is ...
0 votes
2 answers
700 views

Ajax Request returning the whole page not a specifc value

I am trying to make an AJAX Request to my function in my controller and it works, however, it returns me the whole page which i don't want. I have tried encoding it with json but no success i also ...
3 votes
3 answers
2k views

How do I turn off Joomla inserting a BASE tag into the HTML?

I set up Joomla to access it through a reverse-proxy. Everything works fine except the HTML has a <base> tag pointing to the real domain name. The browser changes relative links like /signup ...
0 votes
1 answer
361 views

Joomla router file with fragment(# parameter in URL) in a custom component

How can I get & set the fragment(# parameter in URL) in the URL with the Joomla's existing build & parse method in the router file of the custom component?
0 votes
1 answer
188 views

Get SEF path of an article from external script using articleID

I am practically new to Joomla and I need to get the SEF path of an article from an external php script. I feel like I'm close, but something is not working for me. The preliminary code I have as an ...
0 votes
0 answers
409 views

A slash is being automatically added after the hashtag in urls

I just wanted to implement a scroll to an element for two anchor tags. The problem is that Joomla is adding a forward slash between the hash mark and the named anchor. When I have something like <a ...
0 votes
2 answers
242 views

How to reference a file locally within my class

I'm trying to use file_get_contents to reference a .json file in my module. My directory structure is as follows my custom field which is trying to reference the json file /models/fields....
3 votes
2 answers
252 views

Why are Joomla url query strings commonly delimited with "&amp;" instead of "&"?

I often see Joomla url querystrings with &amp; delimiters between key-value pairs instead of the standard &. In a previous question, How to make my Editor plugin (type: editors-xtd) survive ...
1 vote
2 answers
7k views

How to remove en from my site urls?

After recovering joomla site from failed upgrade and from corrupt backup i at least got it to display something but now all my pages by default point to /index.php/en/ and because its pointing to "en" ...
1 vote
2 answers
306 views

Breadcrumbs Incorrect URL Path

Using Joomla 3.9.12 and SP Portfolio v1.7 I have a menu item called Locations, this is a menu item type SP Simple Portfolio » Items Whenever I visit example.com/locations I can see all my portfolio ...
2 votes
1 answer
457 views

Does JRoute by default finds path to menu link (SEF)

What do I understand in Joomla is that until you create a menu for a specific view you will be getting component links to its views, in this manner: component/component_name/location/new-york (ex #1)...
1 vote
0 answers
182 views

How to enter relative (to current page) URL as a menu item?

I would like to be able to enter relative URLs (relative to the current page URL). I've tried the menu type URL (nested within System Links) but when I enter e.g. first it becomes /first and when I ...
0 votes
3 answers
236 views

Joomla 3 and Google Security Issues - Security Issues

I have site on Joomla 3.6.2 Stable. In this week I get mail from google about "Security Issues". When I login to webmaster tools there was this message Hacked with spam A hacker may have ...
2 votes
1 answer
286 views

Joomla SEF url in CLI script

I am new to Joomla, I am writing a script under folder cli. I am calling helper file of admin component where I fetch category and return url of category. The function in helper is fine and works ...
1 vote
1 answer
1k views

How to add category name to url path for an article in Joomla 4?

How to display category name in the url path? Say I have a category named cat1, and an article1 under this category. I want to display website.wb/cat1/article1, but what I get is website.wb/article1. ...
2 votes
2 answers
2k views

How to remove menu parent from url?

The Joomla menu system includes the menu's parent name in the URL structure for sub-menu items as follows: https://www.mysite.com/parent/page I'd like to remove the parent directory from the url as ...
2 votes
2 answers
134 views

Link to Page & Pre-Filter Portfolio Items

Joomla 3.9.10 I am using this template. I would like to create a link on my home page that when clicked, will take the user to the portfolio page and display a pre-selected tab.. For example my link ...