I am using real-url (1.11.2) , typo3 4.6. I got a problem in FE URL.
i got URL like
http://{domain-name}/page1/page2/
http://{domain-name}/page1/page2/page3/
URL should be
http://{domain-name}/page1
http://{domain-name}/page1
How to achieve this.
Also i lost my CSS and JS reference.
You have to set your config.baseURL, like:
config.baseURL = http://www.example.com/
(In your root template of the website)
Related
I'd like to configure my site similar to config.absRefPrefix behaviour in former TYPO3 versions.
Before it was like all links on a webpage had an absolute path when configured with config.absRefPrefix = https://www.example.com/. Now with the new site configuration module only the Typoscript generated links in the header and at the footer of the page have absolute paths. The links in the navi and in the content section are always relative.
Does anybody know how to configure the site to have the same behaviour as before in older TYPO3 versions?
If you want absolute URLs in TYPO3 9 or 10, one way could be the new "absolute" attribute for the typolink fluid ViewHelper:
https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Typolink.html#forceabsoluteurl
I have tested this quickly on my website, works great for my logo.
For the Navigation: If you use the TYPO3 MenuProcessor and fluid to create your Menu, you can also work with the absolute="true" attribute. I also tested this, works fine.
For the content elements, these settings work for me on a 9.5.11 and even version 10:
// parseFunc
lib.parseFunc.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc.tags.a.typolink.forceAbsoluteUrl.scheme = https
lib.parseFunc.tags.link.typolink.forceAbsoluteUrl.scheme = https
// parseFunc_RTE
lib.parseFunc_RTE.tags.a.typolink.forceAbsoluteUrl = 1
lib.parseFunc_RTE.tags.link.typolink.forceAbsoluteUrl = 1
lib.parseFunc_RTE.tags.a.typolink.forceAbsoluteUrl.scheme = https
lib.parseFunc_RTE.tags.link.typolink.forceAbsoluteUrl.scheme = https
I tested everything and have a complete "absolute URL website" here right now.
In the past we organized pages inside the page-tree by putting them into pages like "meta" or "submenu". These pages had the option "exclude from speaking url" so their name was not rendered to the url.
Is there any option to do this in TYPO3 9.5 to ignore pages from generating the "slug"?
as example:
WRONG: https: //www.somedomain.tld/metamenu/terms-and-conditions/
RIGHT: https: //www.somedomain. tld/terms-and-conditions/
How to "ignore" the page "metamenu" for automatic-generating the slug?
Best regards
Johannes
It is mandatory for a page to have set a slug and every menulevel will generate another url part. It is not possible to exclude a page - think about how to access this page via url
Here Mathias Schreiber tells a bit about this feature: Feature Demo - Speaking URLs Part 1
The TYPO3 extension "masi" provides this feature, including an upgrade wizard that migrates the realurl tx_realurl_exclude settings.
Have you tried using a Folder instead of a "Page"?
page/page/page
somedomain.tld/metamenu/terms-and-conditions/
page/folder/page
somedomain.tld/terms-and-conditions/
You can leave the parent-page as it is and edit your child-pages. There you can delete parts of the urls in the slug-field.
There's a feature in RealURL for TYPO3 8.7 "Exclude from speaking URL". If set 'domain.com/page-one/' loads 'page-one' and 'domain.com/subpage-of-page-one/' loads 'subpage-of-page-one' with no need of 'page-one' in the URL.
The very same thing can be achieved in TYPO3 9.5 manually editing slugs but you can't set the parent page to be excluded from the URL automatically.
It's a missing feature.
I had the same Problem. Sadly there is no "good" solution as far as i know. But there is a little trick. You can fix this in the database. I deleted all my "slug"-entries in in the database for my pages. Then i wrote in all pages wich should not show in the url in slug "/". This does sadly not work in TYPO3, because the BE allows just one "/" and the second "/" will be changed to "/1". But in the Database you can do it. After you edited the slug for your page metamenu and other to "/", you can go into the upgrade-wizard in the installtools, reset the "generate slugs" task and run this task again. This is sadly the only solution i came up with.
I am using TYPO3 9.5 and I created a root page with several subpages.
Before I created a site configuration the subpages were available as
/index.php?id=19
after the site configuration the url has changed to
/events
which is absolutely fine but my subpage cannot be found anymore. I get an 404 Error.
The subpage is still available under the old url but the new one doesn't work.
What can I do to fix this?
after changing the slug(path/path segment) for a page you need to update the slugs for all subpages manually.
The slug is generated automatically when the page is created. Probably your slugs were generated wrong before you build your site configuration.
Try to autogenerate all the slugs with the adapted wizard. You must do it by hand for each page as there is no wizard for page subtrees (yet). you might do the multi-edit in the list module for the slug field.
I have similar issue and no clue how to solve. See TYPO3 9.5 URL Routing with URL Segment is not working
Manual slug override, saving, chache clearance etc. does not help.
Are you using as well Apache? Maybe the issue is related to the webserver.
I am new in TYPO3, I copied a TYPO3 system to localhost so I can develop offline, no my problem is all the link points to the live site. my_live_cite.com
What should I change in the backend to redirect all links and ref to localhost ?
Check and adapt for sys_domain records (see root page PID=0).
See also TypoScript (TYPO3 backend modul Templates) and check/adapt the domain you are looking for to change. Select in TypoScript Template module TypoScript object browser where you can search in constants and setup (configuration) for strings.
Cause of TypoScript can bee different ways, to handle domains. Have a look at config.baseURL and maybe page.config.baseURL
I'm developping a TYPO3 extension (TYPO3 6.2) and I'm trying to create a link with parameters.
My working link is like this:
........./?param1=val1¶m2=val2
Now I'm trying to make this url more friendly and want to show it as:
........./val1/val2
but when I access this url, I have a TYPO3 error saying:
Reason: Segment "val1" was not a keyword for a postVarSet as expected on page with id=MYID.
The url is created with FLUID:
<f:link.page pageUid="MYID" additionalParams="{tagid: '{var.id}'}">More</f:link.page>
Thanks for your help!
It's not about Fluid, but missing RealURL config, there are two good articles written by Dmitry Dulepov - RealURL author:
http://www.dmitry-dulepov.com/2008/05/realurl-made-easy-part-1.html
http://www.dmitry-dulepov.com/2008/06/realurl-made-easy-part-2.html